I'm having the same issue, noticeably specifically in my very close-up photos.
I sometimes have to take photos of checks sent by customers and I usually print the check faces very small to get a lot on the page. When I try getting a close in shot that will include all of the check details, the camera goes blurry and cannot focus unless I'm maybe 6" away, where the details become too small to see in the photo.
I have my older iPhone X here as my business line and it still is able to take these close-up photos with no issue.
I also use this feature to use my phone like a magnifying glass, but this is now impossible on my iPhone 13, though I can still do it on my iPhone X.
At this rate, my camera is so noticeably better on the X, I am considering switching back until this issue is fixed.
If I'd known about this issue, I probably would have gone with the folding Samsung I had my eye on.