I believe the 5-6 weeks thing is how long they live in the gut after they hatch from their eggs. The critical thing is to prevent yourself ingesting any eggs, otherwise the cycle will continue.
You probably already know this, but they lay eggs outside the body (i.e. around the anus and vulva). This is in a mucus which is very itchy, to encourage you to scratch and get the eggs under your fingernails, and then ingest them.
So you need to shower thoroughly every morning to remove eggs. Wash your hands regularly, esp after using toilet and before eating. Change towels and bedding daily if possible. Lots of vacuuming to pick up stray eggs. And wear big pants at night, plus leggings or PJ trousers to limit spread on eggs.
Sorry you’ve got them. I’ve had them before and they are horrible buggers. One thing that gave me relief whilst I was waiting for medication to work, was slathering loads of vaseline around my downstairs area before bed each night. This stops them being able to wriggle around, and helps you get some sleep. You will get through lots of pots of vaseline in a 6 week period, but worth it I think! Just be careful not to put your hand back in the tub after touching yourself, as you don’t want to put eggs back in the pot. Wash your hands first, then take out a big lump, and use that. Obvs chuck any half used pots away at the end of the problem.