Extension validation command isn't working

I’m running Docker Desktop on Ubuntu 22.04. The docker extension validate command isn’t working for me. It’s giving the following error:

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

I’ve verified that the Docker daemon is running. Other CLI commands such as docker ps work fine.

Can you share the output of docker context ls.