Ask your doctor explicitly if you’ve developed a bone spur or if ITS still soft tissue damage?
I am a bit suspicious of insoles fixing much though it soudns like ltos of people have had success with them has obviously had great results? But off the shelf insoles? Why don’t you get decent, softer shoes to start with? Middle aged people on minimalist shoes get injuries shocker!

I would be wary that the hip flexor thing is correlation rather than causation – people doing a lot of hard miles will sometimes get sore legs and injuries , sometimes manifesting as of, sometimes hip flexors.