Had to jog my memory, because I haven’t read these books in nearly 20 years.
But yeah. I think the Rowling of the mid-90s was relatively chill and fairly progressive, given the tone of her writing. It wasn’t until she got Disney-fied (or, I guess, Warner Brothers’d) that she took a turn. The novels really take a dive in book 5 and her political opinions just get nastier and nastier after that.