Export Assembly to STEP without Parts' config names inserted into file names

I have many assemblies to export to step and I have my own Add-in written in C# for it. Everything works fine but the Parts' config names gets inserted into exported step file names.

 

So if Assembly is like this

Assem1 > Part1 (ConfigName1) ConfigName1 is not file name in .sldprt

But when export to step and open back in solidworks

Its Assem1 > Part1_ConfigName1.STEP

How do I avoid it being exported ? I'm using SaveAs3 method and Solidworks 2023

 

 

Edit : Added Code

           SwApp.SetUserPreferenceIntegerValue((int)swUserPreferenceIntegerValue_e.swStepAP, 214);
           swModel.ForceRebuild3(false);
           swModel.ClearSelection2(true);
           swModel.SaveAs3(filePath, 0, 0);

 

Edit 2 : Tried following code as well, it doesn't have any effect

 

           var swModelExtension = swModel.Extension;
           IAdvancedSaveAsOptions saveAsOptions = swModelExtension.GetAdvancedSaveAsOptions(0);
           saveAsOptions.SetPrefixSuffixToAll("pre", "suf");
           saveAsOptions.GetItemsNameAndPath(
               out object idList,
               out object namesList,
               out object pathslist);
           int[] ids = (int[])idList;
           string[] names = (string[])namesList;
           string[] paths = (string[])pathslist;
           names[0] = "RandomName";
           int error = saveAsOptions.ModifyItemsNameAndPath(ids, names, paths);
           if (error > 0)
               MessageBox.Show("Error " + error);
           int errors = 0;
           int warnings = 0;
           swModelExtension.SaveAs3(filePath, 0, 0, null, saveAsOptions, ref errors, ref warnings);