For anyone landing here, this is a known bug on Ubuntu 22 & related systems (Linux Mint for example)
The solution to that is changing the DNS file ownership :
sudo chown root:root /etc/resolv.conf
Related : How to disable warp-cli (ubuntu)? - #5 by woodpixel