Sore hip flexor

My left hip flexor has been sore for a few weeks. It isn't affecting workouts, but during the day it almost feels like it's giving out sometimes while walking. I stretch periodically. It doesn't bother me sitting or even most of the time. Has anyone else experienced something similar?

Edited