Mac book pro charger came with twisted connector tip
You don't have to do anything. The cable is made of a couple layers of isolation warped around copper. Each material has its own elasticity and there is friction where the materials meet. The metal inside the cable is not irreversibly bent. It's the friction that's keeping it this way. Everything will move back in place.