Forgot to mention I'm on Sequoia 15.5.
Here's the hidutil command that remaps the tilde, backtick and pipe back to normal. You'll need to give terminal permission to intercept keystrokes so the remapping works.
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000035,"HIDKeyboardModifierMappingDst":0x700000064},{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000035}]}'
Topic:
App & System Services
SubTopic:
Hardware