When macOS misdetects your external keyboard layout (e.g., tilde ~ prints §), it's usually because the keyboard type is set to ISO (41) instead of ANSI (40).
- Tilde key (
~) prints§instead - Keyboard shortcuts not working correctly
- Keys near shift behaving unexpectedly