I was always under the impression (or never encountered) that swearing and offensive language is not present in the Star Wars universe, yet in Andor season 1, episode 3, Linus Mosk uses a word that could be considered offensive also there is a use of the word bastards, I'm pretty sure no swearing is present in movies but was there any previous occurrence in novels, comics, video games, … whether Legends or Canon.
The 2020 novel Queen's Peril by E.K. Johnston contains a canon example of an English-language swearword ("shit") being used, predating Andor by more than two years.
The treaty was, in Sio Bibble’s professional opinion, a pile of shaak shit. Naboo would be indenturing itself to the Trade Federation’s whims and stood to gain absolutely nothing from the arrangement. They couldn’t possibly expect the Queen to sign it.
Moving down the canon scale, Han solo also refers to some aliens as "buggers" in the short novel Jedi Prince #4: Mission to Mount Yoda (1993)
“That must be the sound those buggers make when they’re starving and smell food,” Han said, firing his laserblaster at the ones that were behind them.
Bossk is "pissed off" in The Bounty Hunter Wars #1: The Mandalorian Armor (1998)
With a single foreclaw, Bossk pointed to the sterile bandage running diagonally across his chest, from one shoulder and under the opposite arm. “It really hurt,” he said, still smiling. “But it didn’t kill me. You should know how hard our species is to get rid of. And also-whatever doesn’t destroy one of us just makes us that much more pissed off.”
Mirta Gev (a Mandalorian bounty hunter) calls Tahiri Veila, a female Sith apprentice a "dung-sucking slut" in Star Wars - Legacy of the Force #9: Invincible.
That inspired Mirta to raise her head. “Go ahead, you dung-sucking dark side slut! See what happens.”