Picture is too blurry to see it very well, and too close to see the rest of the connector. But it looks something like the 10-pin version of the Higo Z812
shown below in the 9-pin version.
https://ebikes.ca/learn/connectors.html
https://ebikes.ca/pub/media/wysiwyg/Connectors/WP8_Z812_Plugs.jpg
A google image search for "10 pin hubmotor plug" finds another possibility in an extension cable, but it doesn't say the connector name.
https://cdn.shopify.com/s/files/1/0050/0475/5062/products/20191114153606_580x.jpg?v=1573717336
https://motowoks.com/products/10-pin-signal-waterproof-connector-for-ebike-1
If necessary, if that cable is the same connector as yours, you could get a controller that has the wrong connector but supports all the right functions to run your bike, and all the right signals for the motor, and cut the incompatible connector off, then cut that extension cable so you can use part of it's cable plus it's controller-end connector to splice to the new controller's cable (or solder directly to the PCB of the controller).
But some things you'll need to know, or find out, to pick an appropriate controller:
What pins are actually used in that connector? All of them, or only 8, or 9?
And which way are they wired? Meaning, if it's for the motor, which three are the phase wire connectors, and what are the other 7? 5 are probably hall sensors, three signals plus 5v and ground. 1 may be a separate speed sensor, or thermal sensor, and the other could be the other one, best guess. But which pin is actually which signal...that is important, since if it is not wired teh same between motor and controller, it will not only not work, it may damage either or both the motor and controller.
Same thing for if it is for the display / throttle / PAS / ebrake signals. And if it *is* for those, the new controller will need to be the same kind (model / brand) to be reasonably certain it will be compatible with your display. Otherwise you need to get a kit that includes a new compatible display with the controller.
It's unlikely that you already know how it's wired, but you may have to do some tests to find out before you connect it to any new controller. The good news is you do not have to open the motor, display, etc., to find out--the old controller can be opened up and continuity tested to it's end of the connector to find out which pin is which.