Escape pipe character in regular expression for wiki links with custom text

The pipe character has a specific meaning in regular expressions, so it must be escaped.