I wanted Codex to find usages of [key: foo | bar] in Elixir's codebase. It grepped first, but got too many false positives.
BUT, since Elixir's AST is quite uniform, it chose on its own to write a script that parses all files, scans the AST, and gave me precise locations.
WILD.