FAQ: Light switch no neutral (UK) (2019)

Good question, and your instincts are correct: do not use the earth in place of the neutral. The radio in the switch might operate but you create a hazardous situation.

FAQ: Neutral and Ground Wires are not Interchangeable