If you are using a @Logitech MX Keys on multiple OSes you will notice that it prints a few different characters on MacOS than it does on Linux and Windows.
I have never found a way to force it to behave the same way on all operating systems. Although you can tweak a bit using Karabiner Elements, I always found it a bit too invasive. Therefore, I created a custom keyboard layout to fix. You can grab it from this repository on my Github.