We built a single regex pattern that uses an alternation (|) for each target item exactly. Since each target is matched literally, we escaped special regex characters (such as +, (, ), ., [, ], etc.) when needed. For the IDs, we used a non‐capturing group so that the pattern matches "ID" optionally followed by "001" or "XYZ". In addition, we wrapped the alternation with ^(?: ... )$ so that the regex will match exactly one of the targets and nothing else. This meets the requirements of matching all given target items and no others in the text.