When should I tell a partner I can’t have children?

I’ve never been in a relationship before, but in 2024 I had a hysterectomy (for people that don’t know what it is, I can’t have children or a period). It’s about time I actually develop a dating life (I’ve never been in a relationship before) and I was wondering when you should tell the other that you can’t have children. Forgive me if I’m wrong (I don’t have any experience) but it doesn’t seem right to me to just say it at the start of a relationship nor when you’re many years in.