Build, test, and debug regular expressions
This regex matches structured RPG markup tags used for referencing spells or items, typically found in Virtual Tabletop (VTT) systems or campaign managers. It specifically looks for patterns like `{@type name|digits-digits|word|word}` enclosed in optional parentheses. The regex captures the primary identifier (such as the spell name) in the first capturing group, making it highly effective for parsing, extracting, or replacing these references in markdown text or exported game logs.