Please take a look at this post it is helpful
It is possible to use the technique is mentioned in the post shared above , and process the pre and post flood event , then it is possible to use for example the band math to subtract the inundated area,
“Post”_"Pre "