I commend you for being willing to repeat algebra 2. A lot will come down to the placement test you take over the summer. Once those are submitted, you should reach out to the head of the math department for their suggestion and guidance. As others have alluded, often times BS math is much more advanced, so it’s not uncommon to repeat a year.
Kiddo was an incredible math student at her school, accelerated 2 years and in honors algebra 2, and she’s now struggling through math 3x (the equivalent to honors algebra 2). There is so much more self discovery, deeper discussion, and a lot of writing. The teacher isn’t showing them how to do the math and then moving forward when everyone masters it, she’s asking the students to figure it out as a group and allowing them to stumble along the way. You can refer to @Choatiemom’s post for a more eloquent description of how BS math works. 