I have found, over the years, that swaddling stops being effective between 3-6 months depending on the infant. I've had little ones that learned to squirm their way out at around 3 months and others that were happy for a couple months longer.
I've always just let the baby decide when it's time to stop the swaddling

Personally the longer and better they sleep..well...YIPEE For me! LOL