How to fix pydantic.errors.PydanticUserError: `__fields__` has been removed in V2 in Python | DevErrors