Can you post another photo with one of the inserts showing the crimp side up, and the insulated seal and end of the connector that has the visible holes flat along the edge of the ruler, so the pin pits can be worked out?
It looks to be around 0.1" or 2.5mm pitch.
The inserts of connectors that size can often be re-used, by opening the strain relief tabs and if possible crimped "wings".
If the crimp can be opened, a new wire can be fitted and the wings folded back in with needle nose pliers, then soldered
Otherwise, carefully solder a new wire end on top of the original crimped area.
Then close the strain relief with small pliers. Just be sure it's all neat and compact enough to fit the housing properly.