How to fix pydantic.errors.PydanticUserError: `Config` is deprecated in Python | DevErrors