Hmm, I guess this is in fact an idiom, specifically "кусать локти" It means to bitterly regret something, usually it is like I wish I hadn't done something. The sentence itself can be interpreted as...