There is an sklearn issue. In sklearn 1.6.1 the error was turned into warning. You can install sklearn >=1.6.1,<1.7
and just expect DeprecationWarning
regarding this issue.
Or another way, you can downgrade to 1.3.1 to avoid this issue
!pip uninstall -y scikit-learn
!pip install scikit-learn==1.3.1