Γεια σου Ιάκοβε.
I don't know if there is another idiomatic phrase in Cyprus, but here in Greece we say: "Το πάθημα θα σου γίνει μάθημα" or just "Το πάθημα μάθημα".They both mean: "You will learn from your mistake".
---------------------------------------------------------------------------------------------------------------------------
Vasiliki Baskou, Instructor/Director, https://learn-greek-online.com.