Stretching for runners works best when it fits the run you are about to do. Give yourself time to warm up and consider where you want to work on flexibility. Your routine for a short easy run may look different from your routine before a hard session.
Start your run at an easy pace
Walk or jog easily before harder running. Add a few controlled movements if they help you rehearse the motion you need. Keep the range comfortable as you build up.
Save longer holds for a separate moment
After the run or in a separate session, gently stretch areas such as the calves or hips if those movements suit you. Maintain a comfortable position and breathe normally.
Pay attention to persistent discomfort
If the same area hurts repeatedly or changes your stride, seek guidance from a qualified clinician. Keep a short record of when it happens and which activities affect it.
Read When Is The Right Time For Stretching for a related topic. For background, see the Mayo Clinic guide to basic stretches.