Headcanon: Shadow is the only character in the Sonic canon who swears because Gerald Robotnik would often swear while working and things went wrong or whenever he got hurt when building something, so Shadow is essentially a toddler just repeating the bad words their parents say by accident
God I hope Shadow is this innocent and naïve at first that he'd be one to immediately start swearing when he hears someone else cursing