It does not. open ssh linux to mac, typing ~ just types it on fish shell prompt. It works after`cat` followed by ENTER
In newer versions, it's disabled by default and you have to do something like this to enable in ~/.ssh/config:
Host *
EnableEscapeCommandline yes
Just type <enter> without cat, your shell will show you another prompt, and the ssh escape command will also work.