You can probably buy a plug with a magnet already attached that fits. Just watch the clearance inside.
Similarly, my 350Z transmission plugs did not have magnets originally. The plugs have a convenient cup on them and I found a hemispherical magnet that fit perfectly. The plug is steel, so the magnet sticks quite well, but I put some JB Weld on it for insurance.