What would be a correct way to revert this text properties set on some words (or on all words on demand) as well as restore their syntax highlight that might have existed before? Nothing with font-lock- seems to work. What would be a correct way to underline and revert?

A function underline-region doesn't seem to work. It just inserts ^H_ into the text.