EDIT: Sorry, about 10min after typing all that i suddenly realised that you're probably using the default app that come with Windows 11 to open your photos/images, yes? I'm so used to removing them i forgot the exist.
e: If so it would probably be easier/quicker to try reinstalling the app that's used to view photos/images. I'm not 100% on whether MS use Paint or, is it, their Photo app to open those files by default and i don't have the time to write a snippet to reinstall both so I'll leave
a link to an ElevenForums article on how to reinstall built-in apps, try reinstalling Paint and/or Photos using the instructions from that link and hopefully that will sort things out, if not then what i typed bellowed wasn't wasted.
It's going to be an error in the registry to do with file associations but finding it would be a nightmare and fixing even more so due to how MS implemented HashIDs for file associations starting with Windows 10 to prevent dodgy software from taking over without the users permission.
Depending on how you've got things setup there's a couple of things you can try, you could try opening a command prompt and typing 'Dism.exe /Online /Remove-DefaultAppAssociations' however as the switch suggests this will remove any associations that may have been imported (MS
Link if interested).
The other option would be to go into settings are manually reset all the relevant associations but that can take 5-10min as it's a long list. To do that you go Settings > Apps > Default Apps > Choose default Applications by file type (link at the bottom, under the reset to the MS recommended default button). Then scroll through the list clicking on each file type that you're having issues with and selecting/reselecting the program you want to open it with from the window that pops up.
A third, slightly less official MS way, would be to download
FileTypesMan from NirSoft and go through the list examining each extension you're having issue with to see if you can notice anything untoward in the commands (box at the bottom that list the actions you can do like open, edit, print).
Beyond that, having to edit the registry directly, is not really something i would suggest without knowing more about the issue like what what program you're trying/expecting to be opening them when you dbl click on them and what the command line entry in the registry actually says.