It's not the best, but people demonize it too much in my opinion. I would say to just use them and see if they work for your use case.
I hear a lot of "just use functions / objects" but for some things (IE, game dev) classes are objectively better in my opinion (it makes more logical sense to do "objects.push(new Car())" than to do it with functions or objects in my opinion, possibly a hot take)