Three teens who cops say have a pattern of lifting luxury cars for joyrides were finally busted.

What led to their downfall? Doing doughnuts in a west Delray Beach, Florida, park, the Palm Beach County Sheriff’s Office reported.

The boys actually stole — then returned — a Boca Raton woman’s Bentley in mid-April, but a slip-up involving an iPod gave authorities a clue, the report says.

Detectives realized that one of the boys connected his iPod to the Bentley’s Bluetooth — revealing the name “Ben’s iPod,” the sheriff’s office says.

That’s how they connected Benjamin David Goldberg, 18, of Boca Raton, to the auto theft after they caught him and two juveniles driving a stolen Infiniti west of Delray.

The sheriff’s office responded to West Delray Regional Park, on Atlantic Avenue west of State Road 7, early Friday after reports of a car driving recklessly in a corner of the park.

Goldberg was in the driver’s seat of the Infiniti, with the two minors as passengers, deputies say.

Deputies found marijuana and drug paraphernalia in the Infiniti, which was reported stolen Friday from a Boca Raton home, the report says. Concealed beneath Goldberg’s leg was a folding blade knife.

In the Infiniti, deputies found a Florida driver’s license and key belonging to the woman who owns the Bentley that was stolen and returned in mid-April.

When detectives interviewed Goldberg and the two teens, they admitted to stealing the Bentley, the Infiniti and a Jaguar from Delray Beach in late April. The boys then requested their attorneys, the report says.

Goldberg faces four counts of grand theft auto and two counts of auto burglary. The two juveniles face similar charges.

Goldberg was taken to the Palm Beach County Jail.