Regex please help replace char "." to string.Empty

Good day!
I want to use variables in metrics, but I get an error when, I put “Include All option” checkbox, because there are characters “.” in the name tags.

please help replace char “.” to string.Empty in Regex function