src/language-js/parse/meriyah.js/createParseError
function createParseError(error) {
  let { message, line, column } = error;

  const matches = (
    message.match(/^\[(?<line>\d+):(?<column>\d+)]: (?<message>.*)$/) || {}
  ).groups;

  if (matches) {
    message = matches.message;

    /* istanbul ignore next */
    if (typeof line !== "number") {
      line = Number(matches.line);
      column = Number(matches.column);
    }
  }

  /* istanbul ignore next */
  if (typeof line !== "number") {
    return error;
  }

  return createError(message, { start: { line, column } });
}