An old [leading edge] dimmer was my first guess. But if an on/off switch then that is weird.
Another suspect could be induction of current in the cable from an adjacent circuit running alongside - LEDs are sensitive to this - possible but less likely post the light switch than before it as the cable length will be short.
Floating voltage on neutral shouldn't do it even if present (and it shouldn't be!) since the lamps have no reference to ground. (Thinking out loud here).
I would try 1) a new light switch 2) new LED bulbs they do fail with age especially cheap ones.
This is a good shout and would be handy if you could measure the voltage when the switch is off (and fault happening) but it's likely to be so miniscule and intermittent you'd need a power data logger/scope to capture it. Much easier to change things and see if the issue goes away. Is anything else in your house consuming power when the lights flicker, such as fridge, freezer, microwave etc?