lexer: simplified regex for dollar constants