Is there an option to loose the upper version pinning on pygobject?
3.52.3 has been released but can't be used due to the constraint - also Debian 12 is out for some time already.
Generally, specifying upper version bounds leads to more problems than simply fixing the very rarely occurring ones due to potential breaking changes.