WordPress nav Walker – Bootstrap 5.2.3 – submenu not opening

Managed to fix. Bootstrap.js was loaded in footer, causing an issue in the layout. Also, bs nav walker does no work with multilevel nesting. (I had to remove nested items from 2nd level, and the menu started working)