Never read that Ascaris had a life cycle of 2 years - IMO doctor is not informed. Keep doing what you are doing after all you know yourself better than anyone else.
I popped them out a couple of years ago and think I was infected as a teenager which was greater than 25 years.