Moreover, by definition of the multiplication of complex numbers $$\begin{array}{rcl}
|z|&=&\sqrt{\Re(z\cdot z^*)}\\
&=&\sqrt{(\Re(z)+i\Im(z))(\Re(z)-i\Im(z))}\\
&=&\sqrt{\Re(z)^2+i\Im(z)\Re(z)-i\Re(z)\Im(z)-i^2\Im(z)^2}\\
&=&\sqrt{\Re(z)^2+\Im(z)^2}.
\end{array}$$