It’s not illegal to search with a metal detector, but it’s against the law to find something with it.
I understand now.
Apparently you can get a ticket for even using a metal detector. Not any more illegal to find something, but illegal to take it away.