Brain playing with me

da

I had a miscarriage on June 18 -21 when I went to the hospital on the 18th they told me I was having a miscarriage and my hcg levels were 3.2 on that Friday my midwife called and said I wasn’t pregnant anymore which broke my heart, I stopped having pregnancy symptoms on June 18 on that 6 and 26th I had unprotected sex not thinking but my midwife told me I didn’t have to wait because I miscarried at 6 weeks on that Friday a nurse told me I have to wait three months which I said okay to but didn’t on July 9 my boobs were sore and I had pain in my sides again so I took a pregnancy test and it had a faint line I took another test a couple days later and it said negative but my boobs are sore on and off and my sides hurt like when I was pregnant i feel like my brain just wanna see me hurt and that my brain playing with me I have an appointment aug 7 and ima get blood work to make sure I’m not cause if I am I’m going to panic ima have another miscarriage