If on linux you have keyboard layout enabled in your menu bar then you could check to see which one gives you tilder.
I often find someone has accidentally switched layout without realizing. It doesn’t really look like a keyboard layout switch button.

If this appears to obvious then I am sorry. I hope you find a solve soon.