Most of the lights I’ve bought (and modified!) to use in my Christmas and Halloween displays only come with a U bracket.
These lawn spikes (stakes) were from an AliExpress seller and cost less than AUD $30 for 15 pieces including delivery.
They have a threaded recess at the top and come complete with a washer and 4mm hex socket cap screw.
The spikes push quite easily into the garden.