It's a crankcase vent.
It vents out piston ring blow by gasses and any pressure that creates, oil vapors, oil droplets, water vapors, and water condensate.
Newer bikes route all these back to the engine combustion chamber to be burned before releasing it to the lungs of mammals on this earth.
Cheers,