A bug introduced in sqlalchemy version 2.0.20 was throwing type check errors in mypy.
This bug has now been resolved. We don't need to lock (introduced in commit 69269433) sqlalchemy version anymore