Why is this an interface? Why not just change it to be a string or the regex?