Flip Names With Vertex Groups?

I know you can flip names with bones, but could you do it with vertex groups in a model? For example, if I rigged the right side of the model, could I mirror it then flip the groups from something like “Hand.R” to “Hand.L”?

The mirror modifier will do that. You need to add properly named groups, but it will mirror the weights