According to the specs, we can simplify the regex to `("(\\W|^)(" ++ intercalate "|" ys ++ ")(\\W|$)")`.