Zend certified PHP/Magento developer

Getting a question mark box on the end of my file extension, how to fix?

I plugged in flash drive into my mac, and I’ve never had problems with these files before. Now there are these question mark box symbols on the end of the file extension (see screenshot for more details). Some files are fine and work accordingly. when I open the file, I keep getting this message that they’re corrupted or decoded incorrectly, but when I plug it into a windows machine, it works fine.

I’ve tried deleting the question marks on the end of the extension, but I still get the corruption message. how do I fix this on my mac? currently on 12.0.1 – Monterey.

enter image description here