RegExp selecting strings surrounded by brackets
Modify your regexp: {(\w*)} and then replace:

yield return Regex.Replace(element.Value, @"{*}*", "");


with

yield return element.Groups[1].Value;


ps: full code is avaialbe here