Sounds like you would qualify under the 2/5 rule if you sold within a reasonable time period. However note that the depreciation you took
(or should have taken) does not qualify to be excluded as part of the 250K
(or 500K if MFJ) gain.
“For rental property, the law has additional limits on the amount you may exclude. You may not exclude the part of your gain equal to any depreciation deduction allowed or allowable for periods after May 6, 1997.”