Androflexible is a term for a person who is mostly attracted to men but very occasionally feels attraction toward women or other genders. However, it can also mean that someone is mostly attracted to masculinity but very occasionally feels attraction towards femininity.
See also[]
https://www.deviantart.com/pride-flags/art/Mascflexible-Pride-Flag-1-609077504