I have simply deleted the whole /home/<my-user>/.cache/JetBrains
directory. After this my "Recent WSL Projects" list in my JetBrains Gateway was empty and I needed to recreate/open them again.
As far as I can see no data was lost and even my settings were still the same as before.