In my state sheriffs are state officers directly under the governor’s authority.
They can and have removed sheriffs from office and can order a sheriff to suppress any lesser state law enforcement officer.
Any municipal officer who resists the governor’s orders commits insurrection, which is usually dealt with by the state National Guard at the governor’s direction.
I don’t know what communist state you live in, but most sheriffs are elected. They out rank any city or fed cops in their county.
I’ve read your posts and understand you favor corrupt federal LEOs having carte blanch to do as they please.