Make use of [datetime.fromisoformat()](https://docs.python.org/3/library/datetime.html#datetime.datetime.fromisoformat) where possible (e.g. at least in in Python 3.11).