Margaret of Austria was not a regent in Spain because she was never the sovereign of the country. Instead, she was the wife of Philip I of Castile, who was the sovereign of Spain. Margaret did serve as regent of the Netherlands for a time, but she never held that position in Spain.
The Remarkable Reign of Margaret of Austria: A Quiz on the Dowager Princess of Asturias