Test, validate and match regular expressions
This regex matches HAML attribute blocks enclosed in curly braces. It captures the content between braces while handling escaped sequences like '}}' and "}'". The pattern is useful for parsing HAML templates to extract attribute definitions in JavaScript applications that process HAML markup.