I worked as an engineer and as an engineering manager in California in the US. Swearing was very, very rare and was considered extremely unprofessional. The rare young engineer who swore was taken aside and told to stop.
As a further comment, during 40 years in the US, I almost never heard swearing from family, friends, or coworkers. In movies, I did notice swearing by soldiers, police, criminals, and drug users.
I can't speak for other professions or other regions.