Long static holds, over a minute per muscle, right before explosive work can slightly reduce power. Short holds inside a dynamic warm-up are basically fine.
For most sessions a dynamic warm-up is the better choice
Save longer stretching for after training or a separate session
If you need range of motion for your sport, short holds are OK
A simple test: is there a position in your sport where you feel limited? If your heels lift in a squat, ankle mobility work makes sense. If not, the time might be better spent on strength training.
Strength training through a full range of motion, like deep squats or Romanian deadlifts, also improves flexibility. Often what feels like a “short” muscle is the nervous system not trusting that position yet.