Interesting, I see the same thing with some dummy connections I just made. This is definitely a bug, I encourage you to contact Esri Support.
I tried numerous "workarounds" and found something completely ugly that works, i.e., double up the backslash and 'n' when using raw strings:
r'nomsqapp4d\\nnomsqapp4d'