Flexibility improves with regular, repeated exposure to longer muscle lengths. Static stretching held for 30 to 60 seconds several times a week works. Loaded stretching and full-range strength training often produce more durable change, because they build control alongside range.
Much of the improvement in the first weeks comes from increased tolerance to the stretch sensation rather than from tissue becoming physically longer. Longer-term change involves adaptation in the muscle and connective tissue, and it is a slow process measured in months.
Training strength at long muscle lengths, such as full-range Romanian deadlifts for the hamstrings, deep split squats for the hip flexors, or reverse Nordic curls for the quadriceps, tends to produce range that persists and that you can actually use. Passive range gained by stretching alone often fades if you stop.
Expect noticeable change in four to eight weeks and meaningful change over three to six months. Nobody develops a full split in a fortnight, and attempting to force it is how people get hurt.
A stretch should feel like tension, not sharp or nerve-like pain. Tingling, numbness, or shooting sensations usually indicate nerve involvement rather than muscle length and mean you should back off. Bouncing aggressively into end range adds risk without adding benefit.
Persistent tightness that never resolves with consistent stretching often reflects a control or strength problem, or a joint restriction, rather than short muscle. If several months of honest effort changes nothing, a physiotherapist can tell you which of those you are dealing with. See Flexibility vs Mobility in Athletic Performance for the wider picture.