Python Regex String Between

Job ID: 30639550

Budget: $10 – $30 USD

I need a python function that gose like this

def Stringbetween(Start, End, String)

It should return any text between the start and the end string inside of the string varaible.

I have already made this but for some reason it fails to work with certain strings because they string of text it is looking for contains a special character and it is not being escaped I guess.