If you may, can you tell how did you set-up UPI as a foreigner since it requires a bank account AFAIK
AFAIK, the people facing issues opening a bank account are only tourists, and opening a bank account is relatively easy compared to most countries.
As for actually using UPI, the government recently allowed some foreign numbers to be registered with the UPI authority, so all bank accounts with those countries' foreign numbers such as NRI accounts can be used within the UPI system. Those countries include Canada, USA, UK, UAE, Qatar, Saudi Arabia, Oman, Singapore and Australia iirc. So I'm certain that they'll extend it to more countries soon.