This page details setting up a venv using python3.10 that will not break the system install of 3.12
https://codingbites.info/installing-python-310-pip-and-venv-on-ubuntu