My takeaway is that sandboxing should be more readily available, and integrated into the OS.
I used sandboxie a while ago for stuff like this, but afaik windows has some sandbox built into it since a few years which I didnt think about until now.
Yeah, Windows Sandbox is available on Win 10/11 Pro and Enterprise and it's actually pretty neat. I used to use it in a previous job where I was forced to run Windows.
However, I think OP might be using WSL and I'm not sure that's available in Sandbox.
I used sandboxie a while ago for stuff like this, but afaik windows has some sandbox built into it since a few years which I didnt think about until now.