Florence Pugh reveals the lesson she learned from ex Zach Braff