What worked for me:
- Disabling the proximity sensor as @Rectus_SA said,
- In your Unreal project, go to Plugins → Turn on OpenXR and turn OFF SteamVR.
This fixed the controller inputs, and now all the buttons are working as expected.
What worked for me: