carefully
clamp the butt in a vise using soft jaws and padding to preserve the butt finish. Then heat the screw to soften the glue holding it in. I use an electric soldering iron, others use a micro torch or propane. Grip the screw with vise grips and unthread it.
I assume you then want to install a new pin?
Then ideally: chase the threads with a tap to remove any old glue and install a new screw using a lathe and methods that any cuemaker would use. If you do not have a lathe, dry fit the new pin, and roll the butt on a flat surface. I hope the new pin seems to run true by eye? If so take your chances and glue it in. Use a slow cure epoxy, and first cut some ridges or flats in the thread surace of the pin that will be totally in the butt. That helps lock in that pin once the epoxy sets up.
If the pin bounces when dry testing it, take it to a cuemaker, he needs to test the butt for warp, and then if OK he needs to install the pin himself when chucked up in a lathe so he can tweak it and get it running close to true. JMHO.