While listening to your ambient sounds, to get it to loop, you can say: “Alexa loop”. That’s it!
With regards to looping as part of a routine, it’s not possible to do that. However, it is possible that whatever skill you’re using for ambient sounds, you can say “Alexa loop”, and then, when the skill plays via your routine, it’s possible that the skill will remember your preference.