Thanks for your replies. Interesting, I assumed that working in a raw .osm file were quite common, like for fixing non-standard format phone numbers and the like.
In this case, the background was this mechanical edit. As a workaround, in the end I did it without raw editing but in level0, opening the result of an overpass query there and copying text from there into a text editor for editing and pasting it back.