What is that device on an Su-27 pilot's helmet?
That is the mounting point for night vision goggles. The following image shows a helmet with NVG mounted.



Helmet mounted NVG; image from lemt.by

The USAF has helmets with different mounting and some of the modern pilot helmets (like BAE Striker II, for example) have an integrated night vision device.