#!/bin/bash
MY_VAR="s3://model/;s3://another/model"
echo $MY_VAR | grep -Po 's3.+?model'