Yes you will need to begin using packages that have been appropriately ported to python 3 and don’t rely on lib2to3. I would encourage you to update to latest versions of packages that work with the latest setuptools. Including upgrading syntax or choosing a different package that has been maintained for the modern python future.
In the python documentation 2to3 — Automated Python 2 to 3 code translation — Python 3.12.1 documentation it details that lib2to3 is marked as fully deprecated with Python 3.11 and will be removed from the standard library in a few versions.
Slicer will be moving to the latest Python version soon as packages have already dropped python 3.6 and even 3.7 support.
Python 3.10 includes new language syntax that is not parsable by lib2to3’s LL(1) parser