I was going nuts trying to figure out why things that used to work would no longer work. Then, I realized ping would work fine in MacOS Terminal app but not in VS Code. It turns out that you need to let VS Code talk to devices on your LAN in the new Sequoia release.