red dots on photos captured by camera

Hello, I recently bought iPhone 13 and the camera was working normally until yesterday. I find out that some red dots are visible on photos shot using the camera app. I thought it might camera app issue so I tried the same with the Instagram app camera but got the same result. I am not able to reproduce the issue on the wide lens. I am currently running the ios 16 public beta but this issue is visible days after installing the update. Any suggestion on what might be wrong will be helpful.

red dots on photos captured by camera
 
 
Q