Gradient-Based Feature Learning under Structured Data