At the moment you $read for a regex match (r switch): scan for the regular expression "$nick" in the text file. The char | (amongst other chars) is a "metachar" in regular expressions - it hasn't the literal meaning of a pipe.
As you compare this match against the full nickname, I assume you want to match full nicknames that shall be excluded - so you may use for example "&& (!$read(Ti.Cercano.txt,w,$nick))". If you want a different matching method - please provide an example / description smile