Updated regexes to ignore masked symbols when checking overlapses