I had this issue when I installed a JDK version 17, not knowing that the current project version is targeting JDK version 11.
Bumping the Lombok version to 1.18.22, which adds support for JDK v17, helped resolve my issue.
https://projectlombok.org/changelog