I have rather severe pain in my flanks and thighs, but only when flexing or moving. I do not want to think this is serious. Any idea what could cause?

Stretching. Many times acute sciatic pain will resolves after stretching the area abit. The muscles will loosen up and help resolve pain. If not, then consider further imaging studies to see which exact nerve in your spine is getting pinched for further treatment options.