When calling debugpy from command line using the vscode integrated terminal, it does not quote command line arguments. I saw some similar issues (#767) but these were focused on launching the debugger ...
With the latest change to the extension (this? #4696), debugpy no longer attaches to the func app running locally (confirmed on Windows and WSL Ubuntu 24.04) ...