PHP7.4 not running on apache2

I’m running trying to run php7.4 on an Apache2. For some reason, when I try to run any use any php scripts in my code, they do not run, and all that is shown is the comment.

What I have in my code is this:

<?php                                                                                                                  
include("developers.php");                                                                                             
?> 

However, what shows up on the html source when loaded in a browser is this:

<!--?php
include("developers.php");
?--!>

I’ve tested this with multiple different scripts, so I do not believe that it is any issue with the php itself. I also installed php7.4, as well as libapache2-mod-php7.4. I also enabled the php7.4 module in apache2.
Furthermore I have tried multiple different .htaccess and apache2.conf configurations, including adding

<FilesMatch ".php$">
    SetHandler application/x-httpd-php
</FilesMatch>

and

<FilesMatch "/.php$">
    SetHandler application/x-httpd-php
</FilesMatch>

I noticed that when I did not include the <FilesMatch> tags, then the php code will run, however then the page itself breaks, and the javascript and css on my page does not run properly.

I am running my server on Debian 11, if that helps.

Can anyone help me with this?