Saying your sorry doesn't work even if you mean it
Some years ago I told what amounts to a dirty joke at work. Unknown to me a woman was standing behind me and she went to HR and got me fired.
While in the office I repeated said I was sorry. I meant every word of what I was saying but their reply was termination of my employment.
If your at work keep your dirty jokes and cussing to yourself.