Structured Dynamic Pricing: Optimal Regret in a Global Shrinkage Model