The VGA standard has no length limit, but it is generally around 30 meters.
However, commercially available cables with a length of 60 m are also available.
However, there are various extenders on the market, and if you use them, it is possible to extend beyond 300 meters.
The following is an extender that uses a LAN cable to enable extension up to 300m.