Pregnancy scare

The past two days I've been very nauseous. I haven't thrown up but my stomachs been hurting like crazy and I can't sleep. I haven't noticed any other signs that make me feel like I might be pregnant. I know I have a dry cough though, some gas, some chest pain, and I've been having sweats at night so I was thinking the flu. I have no fever though so I was thinking it's probably just my anxiety. I airways get nauseous when I have anxiety. I last had sex on the 10th of October and we used protection. I feel like I would know by now what do you guys think? The more I think about it the more anxious I get. I don't know wtf I'm gonna do if I am. I'm taking a test tomorrow but I can't even sleep I'm so anxious.