I found leaked details of Royal Mail's negotiations with their attackers fascinating [0].
I'm not sure it's practical to outlaw the payment of ransoms, but it should at least be heavily taxed (say, 100%). Naively, I would expect this to cut by half the amount that can be extorted through ransomware attacks, making countries that implement such a tax less attractive targets.
[0] https://www.theguardian.com/business/2023/feb/15/under-no-ci...