You don’t have to stay friends with your ex — but you can treat him with kindness. You can be happy that he has found his forever person instead of upset that you weren’t the one who convinced him to settle down.
Revenge isn’t going to make you happy, so you might as well take the high road.