I've really only started learning a little bit of logic in my education and I'm confused by the treatment of variables sometimes. In standard mathematics nearly all instances of a variable $x$ refer to it's value, of course '$x$' itself it simply a symbol which can be instantiated anywhere on the page.
However in logic we treat every statment with occurences of $x$ as a string and introduce an 'interpretation' to read it as a statement about objects.
What is confusing me is that we use $x+1=2$ and have $x$ in this open formula and here under our intepretations we take $x$ as an object and a statement for which we can quantify or just discuss the truth of, but equally the statement itself is just a string of symbols.
But then we use $x$ as a symbol in $s(x)$ and our notation does not change, $s$ is the assignment function on a symbol '$x$', I asked about this before but my knowledge surrounding the difference between 'symbol' and 'object' was insufficient to grasp the answers, and it was unfair to give excessive follow-up questions to the answerer.
Whats I'm struggling with is if an open formula is just a set of symbols and 'x' is just a set of symbols then $s(x)$ is given the denotation of a number (the assignment function on the symbol $x$) but it just like $x+1$, $s(x)$ is just a string of symbols. This may be related to the distinction between metalanguage and object language, but I'm not sure. However, I find the $s(x)$ notation problematic, yes $x$ is a symbol but it refers to the object in the same way '$5$' does.
Why can we use the same notation to denote 'symbol' and 'object' and what effect does 'interpretation have on this'?
Perhaps we can solve this by stating that in the 'metalanguage' a statement like: $s(x)$ can be used, but in the 'object' language we would find $x+1=2$ or $f(x)$ where $f$ maps in the objects.
This may feel like a duplicate but I feel I have widened the scope of it enough.