On the regularity of linear-quadratic optimal control problems with Bang-Bang solutions