Out of the box, Finder lets a file decide whether its extension is visible. That’s how you end up with two files both called “report” in one folder and no idea which one is the PDF. I turn this off on every Mac, and it’s one checkbox.
Open Finder Settings (Command-Comma while Finder is in front), go to Advanced and tick Show all filename extensions. Apple describes it as showing all extensions, even for files that have “Hide extension” selected in their Info window.
Finder > Settings (Command-,) > Advanced
[x] Show all filename extensions
After that, invoice.pdf, invoice.pages and invoice.docx stop pretending to be the same thing, and a downloaded file that claims to be a photo but ends in .app stands out right away. For anyone who moves files to a Linux server or an Unraid share now and then, seeing the real name is just less confusing.
Turn it off again and each file goes back to its own “Hide extension” setting, so nothing about the files themselves changes.
One caveat: once the extensions are visible, they’re also easy to edit by accident when you rename something. Apple says that if you change an extension, the app that created the file may no longer open it. Leave the setting Show warning before changing an extension on (it’s on the same Advanced tab) so Finder asks before it lets that happen.
Further reading: Show or hide filename extensions on Mac (Mac User Guide), Change Finder settings on Mac (Mac User Guide)