Since the warning comes from library code big chance some dependency relies on a stale pydantic version. Options are to wait an update or to try to install elder pydantic version like pip install 'pydantic<2'.
pydantic
pip install 'pydantic<2'