An unexpected legal twist has sent a Pinal County sexual assault suspect back to jail.

Tyler Kost was 18 years old when he was arrested in 2014, accused of sexually assaulting 13 girls between the ages of 12 and 17. Kost was a student at Poston Butte High School in San Tan Valley at the time of the arrest.

Last month, a judge ruled there was no evidence to show Kost was a threat to the community and released him on electronic surveillance while awaiting his trial in February.

Now, a month after his release, his parents tell ABC15 that Kost was asked to return to jail Friday night.

For now, his parents have posted a statement on social media saying, "the legal system is beyond broken."

ABC15 has reached out to Kost's attorneys for more information.

Kost is due back in court next week.