Zener diode would be a silicon semiconductor device that allows current to flow both forward and reverse.
A voltage regulator is used to maintain a constant voltage across the load regardless of input voltage and load current fluctuations.
Since the voltage drop across the diode is constant, the Zener diode is frequently used as a voltage regulator. The voltage applied to any electronic component connected in parallel with these diodes will be the same.
Therefore, Zener diodes are used as voltage regulators.