Sen. Kamala Harris said Wednesday that she regrets that some California prosecutors “criminalized the parents” of truant children using a controversial 2011 law she helped pass when she was the district attorney of San Francisco.

“My regret is that I have now heard stories where in some jurisdictions, DAs have now criminalized the parents,” Harris said in an interview with “Pod Save America.”

“And I regret that that has happened and the thought that anything that I did could have led to that,” she added.

This is the latest instance of Harris grappling with critiques of her prosecutorial record since launching her 2020 bid for the presidency.

Truancy — which refers to unexcused school absences — was one of Harris’ signature issues while she was the San Francisco district attorney and California attorney general.

The law in question imposes fines and jail time on parents of children in kindergarten through eighth grade who have missed 10 percent of school days or more without a valid excuse.

Harris championed the law in the state legislature after she successfully reduced truancy in San Francisco by threatening to prosecute parents under a more dated law.

Harris’ remarks also come after HuffPost profiled an Orange County mother who was arrested and vigorously prosecuted under the 2011 law. Orange County’s district attorney touted the woman’s arrest as part of a gang prevention effort; in reality, her 11-year-old daughter was missing school because of chronic illness.