cost (someone) dearly
To cause dire, harmful, or problematic consequences for someone, especially regarding a foolish action or a mistake. Drinking all night before his final exams is going to cost him dearly. That late penalty could cost them dearly, as it now puts their opponents within range to tie the game.