We are using rocky 8.9 but it comes with python 3.6 - which is being flagged vulnerable. I found information on installing python 3.9 but that doesn’t replace or remove 3.6. Any input on how to uninstall 3.6 and install 3.9 is much appreciated.
You cannot replace python 3.6 (provided by platform-python) with any other python version. This will break your system and it is recommended that you do not attempt to do this.
You can verify if vulnerabilities are addressed using rpm -q platform-python --changelog | less. If you cannot find the appropriate CVE, you can try to find it here and see if it has been addressed, it hasn’t been, and reasoning behind why/why not.