ignore this at your peril.
pulleys are cheap and easy to make, shafts are not.
bent / damaged shafts are easy to repair
cut the pulley off, save the pieces.
disassemble the head
repair the shaft as required, then do what is required as far as bearings / bushings replacement pulley
this is a piss easy but time consuming job to get RIGHT, and piss easy to get wrong and make a mountain out of a molehill by trying to save a fucked pulley on a riveted shaft end.
engineering principle, until you extract the bare shaft, you cannot measure it for deflection, damage and wear.
engineering principle, until you can measure something, you are throwing sticks in the dark.
engineering principle, to get from throwing sticks in the dark to knowledge, perform as few irreversible actions as possible, and any you do do, make them cheap and easy to replace with new.
HTH