Even better Globals.DefaultReplacements.
This is a further improvement over #39722 (closed).
Namely, it explicitly prevents bad recursive expansions: $hello$
occured while expanding an environment variable named hello
is handled as plain text.
Edited by Rika