I'm not massively experienced with Bafang stuff but haven't seen a higo connector with those 2 different ends on them. Also couldn't find anything with a little searching, but did see a site that does custom orders. I'd bet a replacement exists somewhere already though. Good luck with it
Yep, seems to be an adapter?. It was poorly repaired when i got the bike. Ow im assuming its a poorly made adapter