I'm facing the same issues.
As far as i understood this github: https://github.com/microsoft/vscode/issues/89758
This is a known limitation as the input replacement is a different process.
If you put: "processId": "${command:pickRemoteProcess}", behind the pipeTransport it atleast prompts the input but doesn't do the replacment in the command unfortunatly..
I had to hard code it too.