Is recapture a repayment of the depreciation I took?
No. Recapture is tax on part of your gain when you sell. The amount taxed at recapture rates is capped at the lesser of your gain or the depreciation allowed or allowable, so if you sell at a loss there is nothing to recapture.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: 26 U.S.C. 1245(a)(1) · Instructions for Form 4797, Part III
General information, not tax advice. Tax law changes, and the right answer for your return depends on your facts.