As others pointed out, when writing $f(z)$ you basically are referencing "the value that $f$ takes when given an arbitrary value $z$", which can be anything.
My teachers used to say that whenever you use arbitrary terms, you must specify which values they can take, as in the example below :
$f(z) = z+4$ where $z \in \Bbb C$
Meaning "$f$ is a function that returns $z+4$ for any complex number $z$"
Amusingly, you can name either the function and the parameter whatever floats your boat. I knew someone who would draw skulls for functions and fruits for arbitrary params (and that bothered some teachers even though it was totally legit).
Still, to truly answer your question, if you want to stick to definitions, you have to distinguish the name of the function (which in your case is $f$ but could be anything) and the value it takes when given a certain value (what you wrote $f(z)$), and specify its domain ($\Bbb C$ in your case).
You can even have functions that take inputs in a domain and give results in another domain, as $$f : \Bbb R \to \Bbb C$$ $$x \to x + i$$
Read as "a function $f$ that takes a real input $x$ and returns a complex output $x+i$".