refactor: Use regex! for static pattern compilation (#13419)
<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
### Description
Mirrors
[astral-sh/uv#20553](https://github.com/astral-sh/uv/pull/20553): bump
`regex` to 1.13 and use the new `regex!` macro for static literal
patterns.
This replaces `LazyLock`/`OnceLock` + `Regex::new` boilerplate (and
`lazy-regex`) with lazily compiled, reused regexes. Dynamic patterns
built at runtime (e.g. glob encoding, env filters) are left as
`Regex::new` / `RegexBuilder`.
Notable cleanups:
- Drop `lazy-regex` from `turborepo-repository`
- Remove the now-unreachable `InvalidSelectorRegex` error variant
- Net ~140 lines removed across lockfile, globwalk, scope, repository,
and wax crates
### Testing Instructions
```bash
cargo check -p turborepo-lockfiles -p globwalk -p turborepo-scope -p turborepo-repository -p wax
cargo test -p turborepo-lockfiles -p globwalk -p turborepo-scope -p turborepo-repository -p wax --lib
cargo clippy -p turborepo-lockfiles -p globwalk -p turborepo-scope -p turborepo-repository -p wax --lib -- -D warnings
```
<!-- CURSOR_AGENT_PR_BODY_END -->
<div><a
href="https://cursor.com/agents/bc-019f8230-efa9-791e-98ab-949c12085650"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a> <a
href="https://cursor.com/background-agent?bcId=bc-019f8230-efa9-791e-98ab-949c12085650"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img
alt="Open in Cursor" width="131" height="28"
src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a> </div>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Anthony Shew <anthonyshew@users.noreply.github.com>