For venv you have to do it with
deadsnakes
For Ubuntu default repository all python versions and latest ones are not there so get the packages from repository and then install any version using apt
sudo apt install python3.xx
And then while setting up the virtual environment use that Python -
python3.xx -m venv .venv
Thanks!