Wrong keys on internal Swedish keyboard
The Apple input source called Swedish has ™ at Alt 2.  Same for Swedish Sami PC.

The one called Swedish Pro has @ at Alt 2.

So make sure the list at system preferences/keyboard/input sources has only Swedish Pro on it.