ensuring regex matching to avoid malformed word|tag|lemma items