How to make mod_wsgi use Python 3.9?
You should be able to control which pytho is used via a simple configuration line. E.g. /etc/httpd/conf.d/your_app.conf
with
WSGIPythonHome /opt/your_python_env
(I would advise to also set up an venv dedicated to your app if you aren't already doing so)