Aquatic plants are not perennial and losing their roots isn’t an issue at all.
For stem plants, always replant the healthy tops after they grow tall, as the new tops are adapted to the tank. Discard old stems and roots. Don’t worry- new roots will grow easily. Aquatic plants are not perennial and losing their roots isn’t an issue at all.