Pins being pushed in is a not an uncommon problem for joystick ports on 1200s and 500s; it's that bloody back lip that stops you from seeing the sockets from above so people just prod and push.
Anyway if the pin is not bent you should simply be able to carefully push it back out again from the inside. using a small screwdriver. Remove the floppy to one side and you will have clear access.
The actual pins have two tiny flaps on the sides that should spring open to hold it once it has been pushed back in place. Unless they have buckled.
If they have buckled you can still take them all the way out and straighten them but you will probably have to unsolder the bas eof the pin.
If it's going to Amiga kit they can do all this for you.