Many vendors and researchers have looked at this. Electric fields can indeed repel sharks - at some level the field over stimulates the shark’s Ampullae of Lorenzini (electroreceptors in shark’s nose).
Here’s one of these systems https://www.sharkbanz.com/
Disclosure: Info only. I have no connections to this company.
Here’s one of these systems https://www.sharkbanz.com/ Disclosure: Info only. I have no connections to this company.