Revenge isn’t an aspirational goal. It can motivate you to get started, or look at yourself differently, or lift your spirits when you are filled with self-doubt.
However, it’s short-lived, unless you are so lacking in esteem that you NEED to achieve something to prove others wrong. Which is kinda weak.
Better to achieve something to make a part of the world better for others, not just yourself.
Yes, there can be a little glee, when you notice how far you’ve advanced while your critics stagnated in their toxic pond. More likely, if you’ve done things right, you won’t want to mock them. You’ll either ignore them – or help them. And THAT is the best revenge.