Regex to find tag in string

Pretty much what the title says. I have a string with some tags for rich text. I’m looking for those tags and contents too with a regular expression. Following, the code till this moment. Just a function and a regex, I was still debugging.

public void GetTags(string message)
{
    Match match = regex.Match(message);

    foreach (Group g in match.Groups)
    {
        Debug.Log(g.Value);
    }
}

public Regex regex = new Regex(@"(?<start_tag><[^>]*>)(?<tag>.*?)(?<end_tag></[^>]*>)");

I tested the regular expression and seems to work well, but when I try it in Unity nothing happens. Sometimes I get empty message in console, other times I get nothing at all. The groups seems to be inexistent. What am I doing wrong?

anybody knows?