first, disconnect this page from wp-admin > Settings > Buddypress > Pages > Course and set page none then save
Reload this course directory page and here you will get an option to edit the page using Elementor
Now you can add categories filter, after saving connect the page again in settings - buddypress