With any sore muscle, as long as it doesn’t cause physical pain, it is best to move and stay active as much as possible, whether with foam rolling or active recovery activities like walking. You are also able to work around the soreness in your workouts by finding “'injury'-friendly” options in your exercise alternatives.
You can visit this page to learn more about injury-friendly options and this page to learn how to use the exercise alternatives.
If there is physical pain or the soreness develops into a long-term pain, it would be best to seek out a professional who can better diagnose the pain/injury, as well as come up with a treatment plan and any limitations you may have.