Finder can't recognise PDF files without .PDF extension
I have a bunch of PDF files (hundreds). They are all named xxx.pdf-yyyyyyyy where yyyyyyyy is some random unique number. If I double click the file in Finder I get the popup "There is no application set to open the document" and asks me to choose an application to open the file with.
If I manually remove the -yyyyyyyy part of the file name so that it ends with ".pdf" it works fine and preview brings the file up.
From the shell, if I use the "file" command on one of these files it recognises the file(1) magic and tells me "PDF document, version 1.5" so this proves that the file format is correct. Besides preview can open the file if I remove the -yyyyyyyy from the filename as explained above.
So my questions are:
Is it possible to get finder to recognise the file based on its "content", file(1) data or some other metadata instead of depending solely on the ".pdf" extension?
MacBook Air, macOS High Sierra (10.13.4)