Creating a flexible tube that react to environment mesh

Hi everyone. Beginner question here. Really appreciate help. I am looking to create a component under my character BP.. made of tube like mesh and looking to make it flexible like a spring tube or rubber tube which can react and bend when pushed against wall for example. any suggestion on how to achieve this? tq in advance

attached are pics to better explain my aim