Depends if you can disconnect the flex at the lamp end. If you can then you'll be able to buy a length of flex and rewire it.
You could use some connection (Chocolate) block and some wire of the same diameter.
This will do the job: 3A Terminal Strips Pack of 10