The correct way to do this is to get a 24v power supply with enough amps, if that is your desired voltage and run the ESP from the power supply using a buck converter (also known as DC-DC Stepdown Converter). Here is an example:
https://www.amazon.co.uk/Yizhet-Efficiency-Regulator-Converter-Adjustable/dp/B0823P6PW6/ref=sr_1_6?keywords=DC%2Bto%2BDC%2BConverter&qid=1700332834&sr=8-6&th=1
This one can take anywhere between 3v to 40v and convert it to a desired value, which in your case should be 5v.
That brings me to my last point, watching Chris is a great help. Here is a video from him that explains how to connect WS2815 to an ESP, which is also a 12v strip, similar to your WS2811. I decided to use a battery powered ESP and made the mistake of not connecting the ground from the ESP to the common ground, but other than that the wiring for you should be similar or the same as what he has in the video.