Why don't magnets get ripped off during MRIs?

Yes plain films for head and chest, but the search for scars is full body. I assume they would CT an area that has scars or deformation to rule out implants if they found something along the extremities before signing off on the MRI.