Maybe there is an error in the way that Figma uses variables’s values.
In some cases , Figma shows the name of a variable instead of its value; for example, “Font Family.” In other cases, like “font size,” Figma use the value, wich is correct.
Always it should show the value, not the name.