I made this to use the refill of my broken pencil
They can be bought all over the internet under the name BM2:
https://www.amazon.com/s?k=bm2+eraser+refill
It works by rotating the cap which moves the eraser in and out.
I included the source file in case tolerances need to be adjusted for your printer/eraser.
There is also a folder in the src which includes removable supports to make the core easier to print
The author marked this model as their own original creation.