I upgraded my proxy vm from Debian 11 to 12 and now I get this error:
certbot /usr/lib/python3/dist-packages/requests/__init__.py:87: RequestsDependencyWarning: urllib3 (1.26.12) or chardet (5.1.0) doesn't match a supported version!
Mixing distribution packages and pip globally will almost ALWAYS eventually lead to dependency errors such as these.
It's best to stick to distribution packages without using pip and if you somehow require to use pip because you can't get some package/module otherwise, I'd recommend to ALWAYS use a virtual environment using the Python venv module. And from within the venv stick to pip packages.
That said, recommended way to install Certbot currently is using snap.