Not sure about an exact part number, but that's an IDC connector. Here's a half-assed search result o hopefully get you started. Finding exactly what you need is probably going to be annoying. Good luck.
Ask Electronics
For questions about component-level electronic circuits, tools and equipment.
Rules
1: Be nice.
2: Be on-topic (eg: Electronic, not electrical).
3: No commercial stuff, buying, selling or valuations.
4: Be safe.
The identifying property of those connectors is usually the exact distance between the pins. So in your case something with a "2,5" in the name.
Assuming that the ribbon cable is standard - you could consider adding TWO IDC connectors, side by side. Then slice the cable through between them. Then add a standard extension cable to link the two. Indeed if one of the two is male, the other female - the extension can be removed if the thing is relocated to where the extension isn't needed - or a longer one is needed.
I confess to having done this sort of mod several times, myself. It's also quite an easy way of sticking a protocol analyser/sniffer between the two and/or modifying the data that is sent on its way. Or adding an additional sensor (even of a different type) and converting its output to something suitable.
That sounds... Difficult :p I really don't want to slice anything to void warranty and such. I've been spending a lot of time trying to look for some sort of extension cord or connectors so I can make my own, but I was wondering.. can I just use this? https://www.amazon.nl/Elegoo-Kleuren-Breadboard-Lintkabels-Arduino/dp/B01EV70C78/ Would be so much easier 🤔
Lots of people use them for something similar. Obviously, the situation changes once the lines are power lines and not signal lines. If you can stabilise the result and add strain relief.