What is the relationship between modular forms (and modular functions) over $\Gamma \subseteq SL_2(\mathbb Z)$, modular curves $Y(\Gamma)$, its singular cohomology $H^k(Y(\Gamma), \mathbb Z)$, and the group cohomology $H^k(\Gamma, M)$ for a suitable $M$?
Details
From what I understand (e.g. this question), a modular form of weight $k$ is equivalent to a symmetric $k$-tensor on the modular curve $Y(\Gamma)$: $$f(\frac{az+b}{cz+d}) = (cz+d)^{2k} f(z) \iff f(g \cdot z) (\text{d}(g \cdot z))^k = f(z) \text{d} z^k \text{ where } g = \begin{bmatrix} a & b \\ c & d \end{bmatrix}$$ where value at cusps are controlled by growth conditions on the modular forms. But then what do the differential forms and the de Rham cohomology on $Y(\Gamma)$ mean?
Meanwhile, I remember from Akshay Venkatesh's Fields medal lecture that modular forms can be understood as elements of a group cohomology over the arithmetic group $\Gamma \subseteq SL_2(\mathbb{Z})$, although I can't remember what module it was over.