String is in this format - "2021-07-13 05:22:18.712"

I tried using this code to parse it.
`OffsetDateTime parsedDateTime = OffsetDateTime.parse("2021-07-13 05:22:18.712");`

But i keep getting this error -
org.threeten.bp.format.DateTimeParseException: Text '2021-07-13 05:22:18.712' could not be parsed at index 10.

How do i make it work? Any suggestions will be helpful. Thanks