Build, test, and debug regular expressions
This comprehensive regular expression matches valid JavaScript numeric literals, including both Number and BigInt types. It supports standard decimal formats, scientific notation, and special values like `NaN` and `Infinity`. Additionally, it correctly validates binary (`0b`), octal (`0o`), and hexadecimal (`0x`) literals, while fully supporting modern ES2021+ numeric separators (underscores) and BigInt suffixes (`n`). This makes it highly useful for building robust lexers, syntax highlighters, or JavaScript parsers.