Should be fairly simple to convert your project over to PySide2. Better yet would be to convert it to use PySide6 - the latest supported version of PySide.
PySide2 corresponds to Qt5 whereas PySide6 corresponds to Qt6.
There are some API changes between Qt5 and Qt6, but most code should not hit those changed apis.
Should just be a matter of changing the imports.