google
ref
early 16th century: from Latin flex- ‘bent’, from the verb flectere .
wiktionary
ref
Latin flexus, past participle of flecto(“to bend”).
etymonline
ref
flex (v.)
1520s, "to bend," usually of muscles, probably a back-formation from flexible. Related: Flexed; flexing.