If the switch works when on but the led doesnt work then its an Aliexpress mystery. The led probably never worked, they probably got cases and cases of that to get rid of. At 29 cents a switch no wonder it doesnt work, I'd guess a genuine switch like that if you could find it in a store would be $2+ each. I checked out mouser for a quick second, they have other styles if your interested with a light or led. One where the whole rocker switch lights up when its turned on.
How quickly do you require the led to work?
Mouser.com is a good source for professional products.
Do you require a specific size for switch to mount somewhere?
Did you hook up the wires correctly on the 3 metal tabs of the rocker led sw?
led have a neg side and pos side for current to flow and turn on led, if its reversed led wont turn on.
If you google spst, click on images it will give you a clear schematic of the way the spst sw works. Theres spdt single pole double throw and higher. Then there is normally open or N.O. or could be (NO) means normally open.