Test, validate and match regular expressions
This regular expression validates strings against the Block Element Modifier (BEM) naming convention, commonly used for CSS class names. It ensures the block name starts with a lowercase letter followed by alphanumerics, and allows optional elements or modifiers separated by single or double underscores. It is highly useful for CSS linters or frontend build tools to enforce strict component styling architecture.