#let off = 0.5em
#overline(offset: off)[This does not work]
#text(baseline: off)[This]
To shift the line from the top of the text instead of the bottom, I assume you would need to consider text.size in the offset, as well as the text.baseline in the event that you altered that.
Unrelated to this, kebab-case is the code style used most often in Typst.