Big thanks to all of you who sent me suggestions and ideas on how to solve the separator bug when adding a #SwiftUI Menu to a List. @thekrazyjames on Twitter actually came up with a way to get this to work, using a custom menu style. I have written about it here:
https://danielsaidi.com/blog/2023/08/25/menu-gets-incorrect-separator-line-in-lists