This is happening before that last update, I'm not sure how to reproduce it but it happened yesterday night, restarted the phone and it happened again.
Basically the phone thinks I'm in a call or something and turns off the screen when my finger reaches the top of the screen, specially the camera (middle) and the right side icons. The only temporary solution that I found is to restart the phone but there's something that's triggering the issue and I'm not sure what it is, probably one of my apps.
I don't know if this is a known bug or exclusive to the Pixel 7a.