IsRoleVariable checks if the passed in string matches the variable pattern
{{external.foo}} or {{internal.bar}}. If it does, it returns the variable
prefix and the variable name. In the previous example this would be
"external" or "internal" for the variable prefix and "foo" or "bar" for the
variable name. If no variable pattern is found, trace.NotFound is returned.