The notation $p(x)$ is widely used in machine learning (e.g. here) and even statistics (e.g. here). People often use $p(x)$ to refer to a probability distribution (either pmf, pdf, or cdf) rather than just $p$. There is also the notation $p_x$ (or things like $p_{x \mid y}$ for conditional p.d.s), which you will find in some statistics books.
Of course, if you interpret the notation $p(x)$ as the evaluation of e.g. the pdf at $x$, it's a density value, so not a p.d. However, I think, in your case, $p(x)$ is used as $p_x$, i.e. to emphasize that the pd $p$ is associated with the r.v. $x$ or that it's a function of one variable (in this case denoted by $x$ to remind the reader that this pd is associated with the r.v. $x$). That's how I would interpret that notation in this case.
This can be useful if you use the letter $p$ to denote multiple p.d.s associated with different r.v.s (which is often the case); so, by using $p_x$ or $p(z)$, you make it clear which r.v. $p$ is associated with.
I looked at the GAN paper, and sometimes they use $z \sim p_z(z)$ and other times $z \sim p_z$, so there are some inconsistencies in the paper, which is not so uncommon in machine learning papers (sometimes people do that just to avoid verbosity).
One that knows the mathematical definition of an r.v. will also know that an r.v. is a function. So, if $p$ is e.g. a pdf and $x$ in $p(x)$ is an r.v., then $p(x)$ would be a composition of functions. I don't think that people use the notation $p(x)$ for that case, as this can become more complicated: we can easily start to talk about measure theory or pushforward measures (which I only barely heard of). I think that many people in the machine learning community do not have a formal statistics or mathematical background, so they probably just use $p(x)$ because everyone else does.
In this answer that I wrote a while ago, I also say that $p(x)$ could be a shorthand for $p(x = x_i)$, i.e. the probability that $x = x_i$ (some event). This is also common, but that's not how I would interpret $p(x)$ in your case.
probability
andrandom-variable
, has really anything specific to do with AI, just because it happened to be stumbled upon in a ML paper. $\endgroup$