I see a small, autonomous boat carrying a torpedo. Make that boat something like a lifeboat, but filled with foam instead of air and it is almost unsinkable. Design it to sit low in the water like narco submarines do, and it will be hard to detect. A flotilla of those can effectively shut down a straight without the expense of manned submarines.
Torpedo is not a wunder weapon. It may miss, there are lots of anti-torpedo techniques since WW1. Ukrainian drones are hand-guided until the moment of impact.