Thanks for writing your query.
After reading your post, it seems that the pain you are experiencing can be due to Sciatica.
You shold get yourself clinically examined and investigated for confirmation of the diagnosis.
You can take pain killer like Diclofenac
50 mg twice a day after meals along with an antacid like Omeprazole
20 mg. Muscle relaxant
lke chloraxazone can be added for relief from associated muscle spasm. In severe pain
, Pregabalin can be taken after discussing with your doctor.
Any medicine to be taken under medical supervision only.
I hope this is helpful to you.