Yeah probably best to avoid them. Like you said, could be the dye or a treatment to the cotton. I'm sure they weren't tampered with. If they were, it probably would've stopped after they were washed. Also, red dots could be from your leg hairs being pulled. Are they tight? This is just guess work obviously, I wouldn't be able to do any kind accurate assessment without a proper examination.
My advice, avoid the jeans.