The LEDs should be in 2 or more groups that each pulse at AC speed but offset by a fraction of the wavelength, that way there is little to no flicker. Or convert to DC and power it that way.
Or, do what I did. Just make the rectifier directly out of LEDs itself - https://www.youtube.com/watch?v=jDnCHyF7o5U And from there you can power your devices with the leftover DC power.
LEDs are seriously far more robust than they were a decade ago.
That's not PWM in the video. That's raw mains frequency.
Here's one directly on the mains power. NO CONTROL CIRCUITRY.