I’ll add that in one Baptist church I was a member of, the congregation decided a certain individual was not allowed to enter ever again. He had been repeatedly warned and counseled, but he refused to refrain from malicious gossip. So we voted him out, and he was not allowed to enter.
This is legal; both religiously and secularly.