Which function in the re module is used to replace the matching pattern in a string?