If you're not aware, you can remap modifier keys in System Settings on macOS. It doesn't have individual settings for left/right versions of a modifier key, so keep it in whichever mode has the modifiers on left/right paired with each other correctly, and then swap their functions to the right ones.
--
Edit and if i switch to the macOS mode. The right alt-gr key is not mapped correctly.