Postgresql Use Variable In Regex Geeksforgeeks Inheritance