You're misreading the regexp. The pipe is an OR

\ => \\
" => \"

That's all it does.