The FCs are best powered with 5 volts, so you cannot connect them directly to the battery. You must use a voltage reducing circuit.
It looks like that ESC does not have a built in BEC (battery eliminator circuit = voltage converter from 7V to 26V down to 5V) so you will have to add a separate BEC. Separate BEC is normally just powered from battery like ESCs and can be connected to an unused FC servo connection or even to mainport or flexiport or FC receiver connection. Just connect 5V or 6V BEC output to the power connection wires of any of these.
I have used these BECs in the past,.
https://www.ebay.com/itm/3A-RC-Ubec-5V-6V-BEC-Full-5A-Shielding-Antijamming-Switching-Regulator-New-RF/143100775694But if you are using 3 cells or less and are not using actual servos you could even use a linear BEC which might have less electrical noise than a switching BEC
also these
https://www.ebay.com/itm/DC-DC-Converter-Step-Down-Module-3A-5V-Mini-UBEC-BEC-Plane-DIY-for-RC-FPV/323558751798both that I have linked to are switching BECs and work with 2S to 6S lipos.
If you are in a hurry, you can search for similar ones that have better promised delivery time.