(#22962) remove alternative lambda syntax

This removes the two alternative lambda styles that we do not want to keep:

* `{|$x| . . .}`
* `|$x| => { . . .}`