I have a string of time that looks like this: "2022-02-16T14:33:25.943971072". I tried to convert it to a datetime object with this format '%Y-%m-%dT%H:%M:%S.%f', but it doesn't work because it expects to get 6 digits of milliseconds.

What should be the format to convert the string to datetime?