Escape prefix when interpolating into regexp
superenv: don't accidentally filter out HOMEBREW_TEMP

Fixes #25471.