PHP 7.4 not showing as option under Virtualmin

You need to restart Webmin, as the file that you’ve edited usually cached:

/etc/webmin/restart