Does anyone know how to fix this alternator ?

Unless there is some reason to keep that alt I would just get a reman alt.
That’s what I ll probably do. Reason is, there’s nothing wrong with it. It needs a little piece of plastic.