Words are words. They have no intrinsic meaning and only mean what we want them to. Saying the “F” word to someone with the intent to hurt them is a sin because you are trying to hurt someone, not because of your language. Using a word casually around people who also use it there is no sin (in my opinion)
However, there are social norms that must be respected. Some people have ascribed powerful and offensive meaning to the words and do not wish to hear them. If you are spouting them in public with no regard of the people around you, you are sinning in that you are causing scandal and being rude.
Basically it’s all about intent - if you’re around people who have no problem with it and use them for comedic purposes, then I don’t think that’s a sin. If you’re using them to be cruel, abrasive, vulgar, or rude then you are guilty of sin.