After a test, with parameter --ignore-formatted, the script bin/kafka-storage.sh format new directories and keep the existing data.
bin/kafka-storage.sh format -t $KAFKA_CLUSTER_ID -c config/kraft/server.properties --ignore-formatted
All parameters can be found in the StorageTool source code