This video describes how to open a Whirlpool Duet washer door that is stuck. You may see a flashing red light and hear a beeping noise.
Turn off the power for a few minutes and try after, this fixes the problem most of the time.
Message me if this doesn't work. There is a second option to get it open.
If you need a replacement door latch, click the link below for one from Amazon
https://amzn.to/4fVh8Br
Washing Machine Cleaner from Amazon
https://amzn.to/3ZhnwME
Tide Washing Machine Detergent Pods
https://amzn.to/3OMA61D