- Replace broken sequential replace() logic with robust regex pattern - Fix architecture name preservation (x86_64, aarch64, arm64) - Use regex pattern ^([^_]+)_([^_]+)_(.*)$ for proper parsing - Add lazy_static for efficient regex compilation - Resolve compose command branch matching issues - Test: ubuntu_24.04_x86_64 now correctly converts to ubuntu/24.04/x86_64