"such" and "a" (or "an") have to be kept together in these expressions.
The "a" is dropped for plurals and non-countables, of course.
such a good boy
such an active child
such good boys
such active children
such sweet cake
such awful news
such an awful thing to say
CJ