What is this? Is it a UTI ?

Ok so this morning I went to pee and for the past 2 days I’ve noticed this red stringy thing come out when I go pee. Now I haven’t really paid too much attention too it because I know my period is supposed to start anytime soon within the next few days. It has been a slight pain but like I said my period supposed to start and I usually have cramp pain when i urinate during that time. I last had sex Thursday night and this started the next day at night.