We enumerate each required item as an alternative in a single anchored pattern. Every special regex character (parentheses, brackets, plus signs, backslashes, dots, etc.) is escaped so it matches literally. This ensures the pattern matches exactly those lines and nothing else.