Back contraction 22 weeks??

I had the sharpest most unbearable pain in my back on the right side. I couldnt even breathe and my eyes were tearing up. I've never felt anything like this before (ftm). After about 5 minutes of this terrible pain it finally started going away. I've been fine ever since so I was just wondering is this like a contraction or something else?