if updating to synapse 1.70.x breaks your homeserver, try updating typing_extensions to at least 4.1.0.
pip install --upgrade typing_extensions
ought to do the trick
i do not know if you will need to run that with superuser permissions (i did because i am silly (you really do not want to sudo pip
when you can manage it))
@godtributes programmers from academia be like
@aescling TYPINGS FOR THE TYPING GOD