A note on modules over regular rings