This slang meaning refers to deliberately displaying something in order to impress other people.
He likes to flex his expensive watch online.
The player flexed after scoring.
In British usage, a flex is an insulated flexible wire connecting an appliance to electricity.
The lamp flex is too short.
Replace the damaged electrical flex.