The solution was surprisingly simple as you can see below.
Thanks for your help @Sally CJ and @Tom J Nowell.
<?php get_header(); ?>
<!-- PAGE INTRODUCTION -->
<h1 class="page_title"><?php the_archive_title(); ?></h1>
<!-- PAGE CONTENTS -->
As per the comment, here is the updated solution.
Note: Before copy pasting, don't forget to change somePrefix with any other prefix to avoid conflict with any other
Step 1: Make sure you have this filter in functions.php (If not, copy paste it there)
Step 2: Use this snippet to return ...