If you are creating a complex substitution string, I recommend crafting it from your bash terminal. We often see people trying to use bad substitution strings that would fail in bash, which therefore fail when used with the drone bash substitution emulator.

If you have a substitution string that works in bash, and it is not working in drone, you can post here and I can take a look.