I agree that we can extend Sanitizer special case list — Clang 20.0.0git documentation syntax to support invert matches.
I feel nervous adding invert matches features to glob as {!foo}
is far from used in the wild. Bash extended glob has !(pattern-list) Matches anything except one of the given patterns
, but used very little.