I had written before about using the CR2 standard error variant and how they can be used to account for clustering when using basic OLS (or GLM) regression. Some articles on the topic:
Oct 3, 2025