Do I need a comma before and after "of course" in the following sentence?
... that includes of course my mom and Lidia.
You need two commas as you suggest before and after. The test for this is the sentence should read as without the two commas and words between them. Remove the phrase "of course" and the sentence would still make sense.
Yes, you need to have comma. That includes of course,my mom and lidia.