The other side of that connector comes from the motor. Is that also cooked like the one in the picture? Then you have to replace that too. That's what some call a Z916 motor connector, used with the biggest 750W hubmotors. Smaller motors use the Z91 or Z910.
One approach is to buy a Z916 extension cable, cut it in half and splice the appropriate ends to both the motor and controller. The wires inside are color coded and usually standardized (never seen one that wasn't) so the only issue is being able to splice the thicker wires so they are compact and won't break. Then you have to hope that the controller still works. If it still works, then it was a relatively easy fix.
If the controller is smoked, then there are plenty of XLD 30A Brainpower controllers for sale. Assuming the motor plug was not damaged, you could look for an XLD controller that comes with a Z916, but that might be hard to find. Still a relatively easy fix if you find the same controller. Why not ask the bike's importer?
If you have to get your own parts offf the internet, you might do some advance leg work and follow the burnt connector back to the controller to see if it goes directly inside the box, or if they use a second set of connectors just before the controller. Here's an example with the Z910. Rectangular 3x2 white connector and three bullets. Some ebikes do it this way. If you can find a comparable Z916 cable with the same pins, no splicing. Otherwise, you'll still have to do some splicing. but you won't have to disturb the wires on the new controller.
If you need a new controller, you do want another XLD (Brainpower) model because they only work with the display on your bike.
Did you go in to get a flat tire fixed, and the shop burnt up your bike? Bummer.