The package flex 2.6.4-8.2 has been added to kali-rolling. It has been imported from Debian: https://tracker.debian.org/pkg/flex -- More information about flex: http://pkg.kali.org/pkg/flex