I believe that there is something fundamentally wrong with my understanding of functions but I can't pin point what it is, so I would greatly appreciate any guidance.
Consider a unit sphere, centered at the origin, with equation: $$ x^2+y^2+z^2=1\,. $$
Now we can re-arrange this and arrive at a function $z(x,y)=\pm\sqrt{1-x^2-y^2}$, which we can graph and this is the graph of a surface of a sphere, correct? Is it correct to call $z$ a function for the surface of the unit sphere? I have been searching "function for a sphere" online and this doesn't seem to be a term which makes me think I am fundamentally misunderstanding something.
Sphere is a level set of the function $F(x,y,z)=x^2+y^2+z^2$. For example, $F(x,y,z)=1$ corresponds to the sphere of the radius $\sqrt{1}$. Being a 2-dimensional object one can locally re-parametrize it with two independent coordinates, for example in the top semi-sphere, simply by $x, y$, from which $z=\sqrt{1-x^2-y^2}.$