Connect to server - password syntax (symbols) confusing the expression
I wasn't sure whether this would work, but after comments it appears it does…

Use percent encoding like you see on web addresses, where potentially confusing symbols are replaced by a percentage sign followed by a hexadecimal number, as this table...



So the initial p@s$w%rd would become p%40s%24w%25rd