No, a chimney liner (no matter the material) is not acceptable for venting a Tankless water heater. A flexible chimney liner is not a UL approved method and again, is unsafe.
Many people think that this could be an alternative to the correct rigid Z-Vent pipe, but it is not.
Again, we are dealing with a deadly exhaust gas that needs the right material to do the job correctly.