@ReraArogm,
With some electronic gadgets, Rera, there's a lever that releases the plug for easy withdrawal. In any case did you pull on the cord rather than the plug itself
Incidentally if this happens often: There's a kit for easy replacement of the plug onto the cable. Watching my mech-genie No. 2 Son do this recently, I found it very easy. However kit probably costs 'way more than whole new cord