Improved regex to extract failure message
Updated output to use a custom admonition for failure messages