It requiresdaily stretchingbecause the muscles can slowly build up their flexibility over time.
You will gradually be able to bend further over your leg the more you do it.
If you feel any pain, especially sharp pain, stop immediately.

Photo composite by Mira Norian for Verywell Health; Getty Images
For example, a cat-cow pose stretch is dynamic, whereas a hip flexor stretch is static.
Dynamic stretches are more controlled and repetitive and are often used to loosen the muscles before a workout.
What Can You Do at Work to Improve Flexibility?
Many stretches, such as the ones mentioned above, can be done in your office space.
Two to three times a week is the optimal number of stretch days to help improve flexibility.
Ultimately, the success of your flexibility routine will be entirely up to you and how often you stretch.
In any case, reaching your desired flexibility could take a few months to a year.
Summary
Muscle flexibility is crucial for muscle health and mobility.
The earlier you add stretching to your routine, the better.
That way, when you start your stretches, you will do them safely and correctly.
American Heart Association.Stretches for exercise and flexibility.
US Masters Swimming.Yoga poses to improve flexibility.
Lurati AR.Health issues and injury risks associated with prolonged sitting and sedentary lifestyles.Workplace Health Saf.
2018;66(6):285-290. doi:10.1177/2165079917737558
Harvard Health Publishing Harvard Medical School.The ideal stretching routine.