function toNFA(element, debug = false) {
          const { expression, maxCharacter } = parser.parseElement(element, {
            backreferences: "resolve",
            lookarounds: "disable",
          });
          return NFA.fromRegex(expression, { maxCharacter });
        }
Parses the given element and creates its NFA.

@param {import("refa").JS.ParsableElement} element
@returns {NFA}