how to connect led string light to pergola in backyard
There are 12V edison bulbs for boats and RVs. In my backyard, I have incandescent bulbs connected to a landscape transformer. I will change them to LEDs eventually. For an LED bulb, you need to be sure it will work with AC. This bulb says it will work with landscape transformers.

https://www.amazon.com/Voltage-Bulbs-Equivalent-Battery-Lighting/dp/B0854Q9TCR