A 17-year-old boy faces attempted murder charges in connection with the shooting of 49ers wide receiver Ricky Pearsall, the San Francisco District Attorney announced Tuesday.

The teen, charged in juvenile court with attempted murder, assault with a semi-automatic firearm, and second-degree attempted robbery, also faces allegations of discharging a firearm, which could lead to a harsher sentence. Prosecutors may seek a hearing to move the case to adult court, depending on further review.

Pearsall was shot in the chest on Saturday during an attempted robbery in San Francisco’s Union Square. He survived, was able to speak after the incident, and was released from the hospital the following day.

Drafted in the first round of the 2024 NFL Draft, Pearsall, 23, was approached by the armed suspect, leading to a struggle and gunfire that injured both Pearsall and the suspect, according to Police Chief Bill Scott. Two rounds were fired during the altercation.

The teen, who was arraigned Wednesday, suffered a gunshot wound to his arm. His lawyer, Deputy Public Defender Bob Dunlap, said the teen regrets the incident and was unaware that Pearsall is a professional athlete. The teen, a high school senior, was described by Dunlap as having supportive parents and being remorseful for his actions. Dunlap also mentioned that the shooting was out of character and hopes the case remains in juvenile court, despite Pearsall’s public profile.

The teen has another criminal case pending in San Joaquin County, though Dunlap did not provide details.

A judge decided to keep the suspect in custody in San Francisco, despite a recommendation from a probation officer for placement near his home in San Joaquin County, as NBC Bay Area reported.

49ers General Manager John Lynch expressed gratitude for the swift response by the San Francisco Police and hospital staff. He also confirmed Pearsall’s recovery, sharing that Pearsall joined a team party via video chat and is in good spirits. Lynch anticipates Pearsall’s return to football this season.

“This makes you stop and reflect on how precious life is,” Lynch said.