What you are looking at is the "new" Bafang motor cable that they are rolling out across I think their entire G06x line of motors. A lot of people haven't seen it yet because so much of the old stock is still out in the channel pipeline, but sooner or later, every Bafang fat motor is going to have this plug on it.
I say "new" in quotation marks because its been out for over a year.
Electrobikeworld.com has been selling some Bafang motors with this cable for some time, and since they want to keep selling their controllers, they have adapter cables available that go from the old plug to the new (and its only 3-pin despite the appearance of those pinholes on the female side). You can find the adapters here ... and they are quite pricey.
Expect there to be few if any aftermarket products that support this red plug directly without an intervening adapter. If recent history is any indicator Bafang is working to take their components to proprietary standards.