Benamou-Brenier Formula and Vanishing Entropic Regularization for Quadratic Optimal Transport