Enforcement is super uneven, and etc, but IME, they just open your bag, find the thing, and then offer you the choice of tossing it or going back to check your bag. Depending on how much you paid for your shampoo and how much a checked bag would cost you and if you have time to do all that and then wait in line again, I expect most people toss it.