Adding the %option caseless directive to the flex file should scan in a case insensitive way (this is a Flex only option), pr discussion here.
%option caseless