The chain of command including the judge should have their assess hauled in front of a Military tribunal.
I don’t know about a military tribunal, but if any of them didn’t follow their procedures, they should lose their jobs.
I certainly think Sheriff Podunk should definitely be gone over this. All he had to do was ask who it was and what sort of criminal record the guy had, because a few parking tickets would have been a big enough clue to show that SWAT was not required.
It would have to be shown that mistakes were criminally related, before you could hoist anybody before a justice system and not do it as a form of revenge.