For trigonal bipyramidal structure, we know that lone pairs are preferred first to be positioned in the equatorial position. So in $\ce{SF2Cl2}$ lone pairs will be positioned in the equatorial position.
After placing lone pairs in the equatorial position, double bonds are then preferred in the equatorial position but as there are no double bonds in the structures we are considering, so we jump on to the next rule i.e. atoms having higher electronegativity is positioned at axial position and atoms having low electronegativity is positioned at equatorial position. You can also interpret this in another way. You can also say that atoms having higher atomic size is positioned in the equatorial plane and atoms having lower atomic size is positioned in the axial plane.
Now coming back to your structures, $\ce{PF2Cl3}$ and $\ce{SF2CL2}$ we will see structures in this manner:
$\ce{F}$ is more electronegative than $\ce{Cl}$, hence the $\ce{P-F}$ bonds are going to be shorter than $\ce{P-Cl}$ bonds and $\ce{S-F}$ bonds are going to be shorter than $\ce{S-Cl}$ bonds. As $\ce{F}$s (fluorines) are located in the axial position, hence these $\ce{P-F}$ or $\ce{S-F}$ bonds which are actually axial bonds are shorter than that of equatorial bonds (i.e. $\ce{P-Cl}$ or $\ce{S-Cl}$ bonds).
In $\ce{PCl5}$ all the atoms around $\ce{P}$ are basically the same i.e. $\ce{Cl}$. So the electronegativity factor of $\ce{Cl}$ doesn't play any role in reasoning out why axial bonds are longer than equatorial bonds in case $\ce{PCl5}$. The reason is - in $\ce{PCl5}$ the axial bonds suffer repulsion from the equatorial bonds so they become long. The equatorial bonds providing repulsion to axial bonds also happens in case of $\ce{PF3Cl3}$ and $\ce{SF2Cl2}$, however this factor is overlooked/ not considered in cases of $\ce{PF2Cl3}$ and $\ce{SF2Cl2}$ because there this factor/ effect is not dominating. In those cases as the type of atoms attached (i.e. electronegative atoms) are different, hence the effect of bond length shortening due to the electronegative atom attached is the dominating factor.