Extract the alias name from an AliasExpression.
The alias name is the last Identifier or QuotedIdentifier before any
non-trivia, non-keyword segment (scanning from the end).
Check if a segment ends with a Newline (possibly preceded by Whitespace).
Used by layout rules (LT07, LT14) to detect newlines absorbed into clause bodies.
Check if the “alias name” in an AliasExpression is actually a misidentified
SQL keyword (e.g. OVER in window functions). Returns true if the alias
looks like a false positive.