Per NEC, I'm not aware of a maximum length. However, if an equipment bonding jumper is required and routed on the outside of the flex, the length of the bonding jumper cannot exceed 6 feet. This situation is typically encountered when a rigid steel conduit system is used as a grounding conductor (the el cheapo) and the flex is used for final connection to a motor. If you run a separate grounding conductor all the way back, this removes this length restriction, I believe.