Game of Thrones has a few of those as well.
Particularly in the text. The show was trash compared to the text. I still remember feeling absolute hatred and vitriol for one of the characters, but then, by the end of the third? book, understanding why they behaved the way they were, and through their experiences, felt empathy.
I don't want to spoil for any casual readers of your comments section, but a little character. I think you know who I'm talking about.
In terms of other villains, I like when the lines aren't entirely clear at all. One of my favourite TV shows is Babylon 5. The amount of character development that occurs is unfathomable for something that's "just a tv show", and your opinions of characters swings throughout the show, based on their behaviour and interactions. A case can be made for everyone and each of their perspectives.
It has such incredible writing. While the VFX do not hold up today, I've recently started a rewatch (with my friend) - and she, as someone who has never seen it or heard of it prior, is absolutely already reacting in the way I first did when watching it, for all its twists and turns.