On the Optimal Weighted l2 Regularization in Overparameterized Linear Regression