Depreciation Recapture on Sale of Home

I sold my home in 2023. I depreciated a portion of my home for a few years (2008-2011) because I was renting out a room (within the home - not a seperate building.  This was my primary, and only, residence during this period and the entire time that I owned the house.  Turbotax is telling me that this depreciation does not fall under the home sale gains exclusion, and  needs to be recaptured and will be a capitol gain. Is this correct?