Generalized regular rings