Convert the safe, portable parts of a regular expression into a filename glob.
Regex wildcards map to glob stars and question marks where semantics align; escaped literals remain literal. Alternation, lookarounds, and other non-glob constructs are flagged instead of silently broadened.
^.*\.js$
**.js
Gitignore rules, build includes, and file-picker filters convert patterns.