Given we’ve had the internet for over a generation with this issue being known that whole time, I don’t think that’s actually something we can do. Not in general, not from plain text.
I think only morons, autistics, etc have a habitually hard time identifying sarcasm. These are not the people we should optimize the web experience for.