I noticed many cable relief designs on thingiverse for motors with wires internally connected to the motor, but in a case like this the plug may be an obstacle.
i took a handful of old motors from dead printers (monoprice minis, anet A8s) and also some new motors like the one pictured on my current project printer.
this also works on my CNC units to keep any shavings out of the plug for further protection against shortages!
I will test this with 1/2" cable wrap to protect the actual wiring after relieving the cables.
recommended to print in PETG for the flex and heat of the motors but it works in pla as well (you may need to shrink it slightly in slicing for pla to fit as tightly on the motor)