I had a different issue, we use Cloudflare SSH for infrastructure, like a tunnel, and seems this SSH tunneling was affecting VsCode, so I switched back to direct SSH connection and it worked.
too bad