Typing option+s results in surprise emoji () instead of eszett (ß)
I have successfully found out where the replacement was coming from - it turns out there was an entry in ~/Library/KeyBindings/DefaultKeyBinding.dict which mapped option+s to the surprise emoji. I had forgotten putting the entry in there.