Before a string can be used, it must be “expanded” whereby the expandos (things that start with $) in the string are removed and replaced with their values, and backslashes (\\) are dequoted. However, stuff inside of parenthesis “(…)” or curly braces “{…}” is considered literal text and is not expanded. The stuff inside parenthesis and curly braces is usually expanded later by someone else.
The following strings are expanded each time they are used: