I made a 3D printed model of original Ikea curtain rod ending. It is made in a little different way but still works just fine.
Printed with PLA.