I would request you to register your concern in Samsung Members Application. So, the concern team gets back to you as soon as possible.
Please follow this path to register your concern in Samsung Members Application (Open Samsung Members Application > support > Send Feedback > Error report/Ask questions).
Note. please attach the error log file within 15 minutes of the error occurring.
Same happened to me on my S21. Even if the power button configured well (as it was before the update), it can not be used to lock the screen, can't unlock and can not power off...
Reported to Samsung, hope they will help...
Dear Samsung Member,
Greetings from Samsung Customer Support!
We acknowledge your query and apologize for the same. To resolve your device hanging issue please visit this link: https://www.samsung.com/in/support/mobile-devices/how-to-restart-the-device-when-freezed-or-hanged/
In case the issue still occurs. Please register your concern in Samsung Members Application (Open Samsung Members Application>Support>Ask a question/Tap an error report>Type your query>Send)
Thank you for writing to Samsung.
Samsung Customer Support