In the US, the cops essentially get a free pass to make mistaken arrests. The canonical example is arresting someone pursuant to a warrant that the cop thinks exists but doesn’t.
As far as I know, mistakes of fact (and mistakes of law) by the police are only excused if they are objectively reasonable given the circumstances. It’s not a universal get-out-of-jail-free card.