I have a couple of different LED decoration lights with this kind of power connector there the cable has been damaged or ripped off.
This is a simple replacement connector housing that is easy to print and works quite well.
This is how I have done it:
The author marked this model as their own original creation.