Not an expert, but afaik you'd have to separate the buyback by 1 month from the wash sale for it to be valid/legal. You'd be kicking yourself if the price skyrocketed during that window.
Edit: https://help.cointracker.io/taxes/us-taxes/do-wash-sales-app...