A prisoner who was just a week away from being released escaped from a minimum security lockup in North Carolina — but gave himself away by taking a Lyft to flee to his family’s house, according to reports.

Jaylan Andra Ross, 22, was set to be released from Piedmont Correctional Institution in Rowan County on Aug. 20 — but on Monday allegedly climbed a fence to bust out of the lockup, where he was being held on gun charges, WSOC reports.

Cops say he then walked to a town about a mile away and got into a Lyft — which took him to his family’s home, an 83-mile ride and some 90 minutes away, WITN reports.

Investigators tracked Ross to the residence about six hours later after finding out where the Lyft driver dropped him off and arrested him.

It’s unclear if his relatives helped him order the getaway ride, WSOC reports.

“Usually, if someone escapes with that little time left, there is a trigger,” Shelby Police Capt. Steve Canipe told the station. “Something had to happen they wanted to be involved in or didn’t want to miss.”

Ross was taken back to the prison later that day, but will now face charges for the escape and will be transferred to a higher-security facility, North Carolina Department of Public Safety spokesman John Bull told The Post.

Ross was originally admitted to the prison in May 2016 for a three-year, eight-month sentence of possession of a firearm by a felon. He was sent back to the facility after being convicted for crimes while on parole or post-release supervision, Bull said.

“Safety is fundamental to Lyft, and the described use of the platform is troubling,” a Lyft spokesman told The Post. “We have permanently removed the ride requester’s access to Lyft, have reached out to the driver to offer our support, and stand ready to assist law enforcement.”