Fluid–structure interaction-induced oscillation of flexible structures in laminar and turbulent flows