The 2nd Amendment says "well regulated Militia...". "well regulated" means properly functioning, as in a "well regulated" clock, a usage from this same period.
It is a semantic fallacy to impose current usage on this late 18th century term. We must go back to that period to understand the force of its meaning.
Further, the 2nd amendment is a contraint on Federal power, not an authorization to "regulate" the Militia. COTUS Article I, Section 8, Para 16 dictates what powers the Federal government has over the Militia.
“the 2nd amendment is a contraint on Federal power”
The 2nd Amendment, like the 4th Amendment, is a constraint on federal and state (and local) governmental power.