We solved by building a regex pattern that uses a non-capturing group (?: … ) with alternation for each target string. Each target is exactly matched and all special characters in those strings (like +, ., (, ), [, ], -, :, etc.) have been escaped only as necessary. Finally, we anchor the regex at the start (^) and end ($) to ensure it matches exactly one of the given target strings and nothing else. The solution is a valid JavaScript pattern excluding the surrounding slash delimiters.