I’ve used Stay for years to automatically remember window placement. Works great for multiple monitors and would also work for ultrawides.

https://cordlessdog.com/stay/