What is the role of this Zener diode in a LED string? (Old traffic light restoration)

Probably, but it depends on the actual Zener rating.