Sex with my ex

I had sex with my ex today and I know he’s been seeing another female for a while now. I know it was a shit thing to do, it wasn’t planned and it happened so fast I didn’t have a chance to think about it to much. Should I tell her or forget about it and make sure it does not happen again.?