How the exchange rate regime drives inflation