In my house those are "Daddy Words"...which has worked pretty well from them being repeated outside our household. Oldest DS knows that he can't say them until he's a Daddy. lol
But he has let some slip, when I'm driving. Most notably when I gut cut off going to Starbucks he exclaimed "Oh F@#K, god **** car"...which is not me...but DH. I could care less but he likes to have "conversations" with other drivers.
When they do slip, I don't make a very big deal about them, but remind him that those are Daddy words and DEFINITELY not to be repeated at school! It has worked for us