If I work for Google and buy a BMW, that doesn't mean Google endorses BMW.
> while cozying up to the government
Uh, the Örebro Party isn't even elected. In fact, they have 0 seats at the Swedish parliament.
A political entity =/= The Government.
When you're a founder or one of the c-suite your actions represent the full company. That's part of your job.
In the European countries I'm familiar with, company directors are held to a higher standard precisely because they represent the company and have a duty to avoid damaging it through their private as well as public acts. Is Sweden really so very different?
The fact that you're claiming that a donation to an anti-immigration political party is the sort of conduct that people "held to a higher standard" by law should be forbidden from doing is a type of political censorship that you're trying to enact via the mechanism of corporate law, and it's worth destroying that mechanism of corporate law over it.
It doesn't really matter how that's happened - it wouldn't be the donation that's the problem from the pov of corporate law in other countries, it's the fact that a company director has harmed the company.