I am having the same problem as this thread on the latest MacOS Sonoma 14.4.1
Has anyone had the same issue and found the solution?
Finder keeps stealing focus after closing any application
For some reason, whenever an application closes, Finder will magically steal focus from whatever application should have it instead. For example... Say I have Safari open, then open Settings and close it, Finder will bring all of its windows to the foreground on top of Safari for no apparent...
forums.macrumors.com