Regularity properties for general HJB equations. A BSDE method