Converting string<timestamp> into datetime

I’m having trouble converting the string returned by the clock API: Clock API

Example: Example

{
  "timestamp": "2018-04-01T12:00:00.000Z",
  "is_open": true,
  "next_open": "2018-04-01T12:00:00.000Z",
  "next_close": "2018-04-01T12:00:00.000Z"
}

The timestamp string looks like this: '2022-03-08T23:15:37.99485889-05:00'

I have tried a handful of things including:
d1 = datetime.strptime(‘2022-03-08T23:15:37.99485889-05:00’, ‘%Y-%m-%dT%H:%M:%S.%f’ + ‘%z’)

response: ValueError: time data '2022-03-08T23:15:37.99485889-05:00' does not match format '%Y-%m-%dT%H:%M:%S.%f%z'

and
d1 = datetime.strptime(r['timestamp'], '%Y-%m-%dT%H:%M:%S.%f')

response: ValueError: unconverted data remains: 89-05:00

Has anyone had any luck with this?

You can check the reference implementation in Python SDK or just use this SDK as is because it solves not only this particular problem.