Have you tried uninstalling and reinstalling survival
package? I have installed on rstudio cloud and I cant reproduce your issue.
Also, this question is cross-posted on SO
https://stackoverflow.com/questions/55443290/formula-for-survfit-doesnt-work-after-update
Please make sure to follow our cross-posting policy