It’s always worth analyzing the past, but we should be careful not to evaluate it purely through the lens of modern values. While this approach can highlight important insights, it risks oversimplifying contexts or judging them unfairly without considering the beliefs and circumstances of the time.
Ah, but...
That's kind of The Idea, Here. The problem isn't directly the art. The problem is the art in the context that it exists in. If you accurately point out that a dress is ill-fitting and you're a professional fashion designer at a runway show, you would be treated differently than if you accurately point out that a dress is ill-fitting and you're a groom standing at an altar and your bride is in front of you in that ill-fitting dress. Context helps determine meaning.
Sexism, in context, is related to social power.
Yes, very much so.
And that gives us the problem with @Belgos suggesting we worry about the "beliefs and circumstances of the time". The things we call the "values" we'd refer to of a given time are generally the values of those who have greater social power. The people who have the power set the rules, after all. And their rules will generally justify their actions.
But, to use an example far more extreme than happens in our game books to show the point: if a person is beaten for having the wrong skin color, ethnicity, religion, gender, gender expression, or the like, the "beliefs and circumstances of the time" do not lessen the broken bones, bleeding, and pain.
Thus, the measure we should use is not the "value lens" of the time, but the harm done.