A teenager who drove on the wrong side of the road while pursued by police at 140kmh has been jailed for six months.