When does sleep regression stop?

How long does it last? I’m struggling but he’s about to get his third set of jags soon so about to be hell😭. How long has your babies (4 month) sleep regression lasted ?