I have an external keyboard that I connect to my laptop, and they have the same layout.
But somehow the '<' and '@' buttons are switched on the external keyboard.
Yes, others have asked about this in the past on the forum. I am not very good with the Forum Search feature... but if I recall correctly, it was due to having more than one layout set.
You might try setxkbmap I am using US_en, so my example would be: