The most obvious examples of motor use I have seen is Froome on Ventoux 2013, Contador on Mortirolo 2015 and Pogacar in 2020 on the flat part of the TT.
They are not using hub motors, it's crank motors perhaps with waterbottle as battery, but even that is not necessary to get a huge advantage...