it looks like the codebase is full of inline regex usage that looks like this: <img width="1169" height="111" alt="Image" src="https://github.com/user-attachments/assets/1729b00d-a760-486b-a20a-f23a8048264e" /> we should prefer defining regular expressions at module scope to avoid re-compilation on every function call
it looks like the codebase is full of inline regex usage that looks like this:
we should prefer defining regular expressions at module scope to avoid re-compilation on every function call