Replacing that section of loom is likely to be a right faff.
I would go for replacement connector as suggested by Terrier & Octoparrot
The rubber boot will peel back and you just need to remove the pins and reassemble onto the replacement connector.
Personally I would be happy with a scrap yard sourced used connector, in fact grab a couple