I have the same problem from time to time, also on a Pixel 8. Tapping anywhere won't make it focus. Restarting the camera app fixes it.
This problem only appeared quite recently so it could be a bug in a newer version of the app, but I don't know how to reproduce the problem or when exactly it occurred for the first time.