Nobody really asked the exact price you bought Bitcoin before selling it at $9k, could remember when the price hit $3k during the pandemic crash, did you purchased it at that time? If that's true, then you should be thankful and happy for selling it at $9k, what's really important and necessary here is the profit trailed. That's nothing to regret on selling with gain, trust me, it's all about the gain and most importantly your personal needs,
What if you lost it through gambling as this case here.
Bought 0.3 bitcoin 4 months ago(when it was 10k$) but lost it all via gambling...
it was supposed to be for long term savings but i fucked up

You should be thankful mate.