Add a lint for not using field pattern shorthands

Closes #17792.