Build, test, and debug regular expressions
This regex matches Ruby symbol literals, covering both simple identifiers (e.g., :foo, :bar?) and operator symbols (e.g., :+, :==, :[]). It uses negative lookbehind to avoid matching colons in contexts like hash rockets or module namespaces, and includes optional suffixes like ?, !, and =. Ideal for syntax highlighting or tokenization of Ruby source code.