This is nothing like a hack!
In a usual hack, the miners just process a transaction and the hacker gets the funds, they have nothing they could return!
Here the Op just overpaid something, and the funds have not got anywhere, they were received by the miners themselves by accident.
if it's a mining pool then that money was already distributed out to a bunch of individual miners in the pool. the money is gone. so you can't get it back unless you go back to each miner in the pool and have them return it good luck with that.