Edit: Answer - https://en.wikipedia.org/wiki/Allium_tuberosum

I’ve been letting this grassy plant slowly take over my yard and I haven’t been able to actually identify it. It has white flowers in late summer that bumble bees absolutely love. It smells like onions when you cut it and it tastes like onion as well except maybe slightly more mild.

Location: SE Minnesota

Not flowering:

Seeding out: