Replace brittle array index [4] with pattern search to find the specific
regex we need to patch. This makes the fix resilient to Monaco reordering
their tokenizer rules and provides a helpful error message if the pattern
is not found (e.g., if upstream fixes the issue).
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>