Correct, but the ban was pulled last November.
https://indianexpress.com/article/e...-fall-in-rice-output-and-the-economy-7865051/
"But as earnings from tourism (from $3,606.9 million in 2019 to $506.9 million in 2021) and workers’ remittances ($6,717.2 million to $5,491.5 million) plummeted, the reserves, too, started depleting. They fell to $4,055.16 million in end-March 2021, $2,704.19 million in end-September and $1,588.37 million by end-November 2021. The latest end-February 2022 data from the Central Bank of Sri Lanka’s website shows the total official forex reserves at $2,311.25 million, which suffices for just over 1.3 months of imports.
It’s quite possible that the decision to ban imports of chemical agricultural inputs may have been as much a response to depleting reserves as the ruling regime’s commitment to organic agriculture. Fertiliser imports alone were valued at $258.94 million in 2020. Given the rising international prices, the import bill in the normal course would have gone up to $300-400 million in 2021. Banning/restricting imports may have been viewed as a means for conserving scarce foreign exchange."
It's a muddy situation, that seems to ultimately come back to corruption and poor planning.
https://foreignpolicy.com/2022/05/12/sri-lanka-protests-crisis-rajapaksa-prime-minister/
"In 2019, newly elected President Gotabaya Rajapaksa cut taxes, leaving the government with insufficient revenue when the pandemic began. The hit to tourism did further damage: The tourism industry’s contribution to GDP fell from 5.6 percent in 2018 to 0.8 percent in 2020. But the government still spent heavily, resulting in a currency depreciation. A 2021 ban on chemical fertilizer reduced agricultural yields, contributing to rising food costs."