PlatformIO won't install in WSL2 remote host

When I load my project under WSL2, VSCode launches. PlatformIO says it is disabled because it hasn’t been installed in the remote host; the PlatformIO window eternally says “Initializing PlatformIO core…”

When I click “Install in WSL2” it churns away for about 10 seconds, then returns to the same message and the “Install in WSL2” link becomes active again.

In other words, no matter how many times I try to install it, it believes it’s not installed.

Any suggestions? This is Ubuntu 20.04 on Windows 11.