The devaluation thing is rough when you're dependent on dollars. What a lot of freelancers do is actually raise their dollar prices every so often, rather than wait for the currency to collapse before reacting. If you're charging the same as you were two years ago, you're losing purchasing power straight up. Check how much your costs have gone up (internet, software, taxes) and adjust accordingly. US clients don't care much if you charge them $500 or $550 for a project if the work is worth that; what really stings is lowering your price.
Some people also diversify: work with clients from other countries or more stable currencies, or start charging in stablecoins/crypto to avoid banks eating up the exchange rate. Another trick is having a "base" rate in dollars that you bump up gradually (every 6 or 12 months) and give recurring clients a heads-up. And check what platform you're using to exchange: sometimes traditional banks screw you with the tourist rate while digital wallets or exchange houses give you better rates.
What I don't recommend is sitting around waiting. The dollar's not going to turn around anytime soon, so you've got to take the initiative yourself. Raise your prices in a reasonable and realistic way, because if you don't, you're just giving your work away.