My S24 Ultra no longer has rear cameras, they no longer work after the phone fell from a table. I can not scan QR codes either.
So many companies - such as electric car charging stations - require this without considering failure modes and alternative workflows.
They properly do, but then conclude that it would be more costly to implement and create those workarounds than not getting the extra 0.01% of users.
The elder gods have declared that you have been unpersoned... until you buy a new phone.
Also try squeezing the phone at various points to see if it pops the internal connector back in. You can find a repair video to see where the connector is.