The essence of this question is about how we define expressions like
$x^2+2x+1$ and say, 'when $x=2$, $x^2+2x+1=9$, treating $x$ like another name for $'2'$.
When we define the value of an expression, we have lots of symbols/names for a given object, let me use numbers here for simplicity, the number $2$ has the name $1+1$ and the name $2^1$ and the name $3-1$,or the name $-(-2)$, when we solve equations and assign values we often write expressions like $x=3$ for assignment and hence can conclude that: $x^2=9$.
The question is whether we can see these as being
'replace $x$ with a name for a number and you get this value:
or instead of having a value based on a hypothetical, we use $x$ as another name for the number, so unambiguously the expression has this value in the exact same way $2+2$ has a value, as '2' specifically refers to the number, in the same way $x$ would do so.
Does the 'value' of the expression mean the hypothetical value we get when we symbolically replace each variable with an explicit referent for the number (like '$2$' or '$2+2$') or the value under assignment where $x$ can remain and the expression keep its value as '$x$' becomes another name for it's value so $x+x$ is the same as '$2+2$ as $x$ is a specific name for $2$ without any 'hypothetical' idea.