I got the soap treatment at a boy’s summer camp once by a counselor for saying a single bad word, but that wasn’t the worst thing that happened. What some counselors did would probably get them arrested today.
Back in my day, if I swore at a teacher, the real punishment started when I got home. Parents today are quick to blame the teacher when the cause is often poor, or no, parenting.