How do I create 301 .htaccess redirects?

How do I create 301 redirects from this site
https://sitepreview.ga/kids/course/c
to this
https://sitepreview.ga/kids/lesson/c

Assuming that the last part of the URL ("c") is dynamic? So it can be e.g. https://sitepreview.ga/kids/course/b or https://sitepreview.ga/kids/course/something-complex and that part must be carried over to new URL (so e.g. sitepreview.ga/kids/lesson/something-complex)?