So I guess you are using the Scribble technology on iPad. You have the tag there, and a flashing cursor in the tag, but when you write, the tag just stops being a tag. Is that it?
Here is a video of the problem. If I manually write “#” with the pencil it works. It’s only when pressing “#” from the toolbar and then writing with the pencil that I get this bug.