It could be unrelated to a prior jailreak - I had installed the iOS 14 Beta and my banking software insisted my phone had been jailbroken. Fortunately it allowed me to 'Accept the risk' and continue.
I think the most likely scenario is that there is a third party library or service to detect jailbreaks and it is faulty.