Are the tools like the driver and the bolts on the ISS magnetized to prevent losing them when doing repair/maintenance? Is there a special way to prevent it other than magnets?
Not magnetized, just good old fashioned tethers. All the tools have a place to connect a tether. You can look at a catalog of all the EVA tools (it's kind of old, and a huge 750 page pdf) at this link.
For example, here's everyone's favorite tool, the hammer. Notice the tether point.