We explore the relationship between de Rham and Lie algebra cohomologies in the finite dimensional and affine settings. As an application, we describe the BRST reduction of the chiral Hecke algebra as a vertex super algebra.