VSCode Syntax error for php inside js file

I'm passing gettext inside strings in .js.php files (which are mostly javascript files), I've already added a file association for javascript in my settings.json but vscode adds squiggles under the strings since it's not recognizing the php. Is there a solution other than changing the file type everytime.

Heres an example.

   name: 'description',
   header: "<?=_("Description")?>",
   type: 'text'

the 'header' portion is underlined in red. Changing the quotes is not an option as the codebase has multiple thousands of these types of thing.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum