I had the same issue on my Linux machine and running stm32cubeide -clean once solved it for me.
stm32cubeide -clean