Records are pretty cool, but NetBeans pushes the keyword a little bit too hard.
Take a look at this code:
put the cursor where the | is and press ctrl + space. You will see only the keyword "record" being suggested. Applying the suggestion would replace foo with "record" which does not make a lot of sense.
Tested on JDK 17 and 15, probably reproducible on others too - post record introduction.
issue was brought up on the #netbeans irc channel