It is completely okay to stay friends with your ex. Now if you get a new partner and still wanna continue being friends with your ex you can as long as you know your boundaries ig I used to be friends with my ex but she cut me out cause she couldn't see me with my new partner.