Maybe it’s just the perspective of your photo, it looks like its quite clear of the frame in a big loop. It should come straight down, against the middle of the metal protector plate and the up the under the downtune. Nice smooth run, and well clear of the cranks, and definitely not looping under the frame ready to catch a root.
If it’s too long, it’s really easy to shorten. Cut the cable end cap off, loosen the grub screw on the shock, pull the cable out the bottom, and up inside the outer, chop the outer down, feed the cable back through the shock, press the barrel at down slightly then tighten the barrel grub screw again (that pre-tensions the cable a wee bit), chop off the excess and fit a new cap. Takes about 5 mins. Or just push/pull the excess cable up to the bars instead.