The attribute collections has been depricated in matplotlib > 3.8. Pyflexplot uses of draw_colors_contours have to be adapted accordingly when moving to newer versions of the dependencies.
Details see:
Collections attribute deprecation in version > 3.8