Could this help you? You would be able to decompile and compile aab.
This is how you should decompile
java -jar BundleDecompiler.jar decompile --in=input_app.aab --out=output_dir
With a warning from the stackoverflow topic:
better be aware that BundleDecompiler will delete all your file on output folder! lost all of my files cause of this