[lldb] Fix TestBreakpointLocations (#131890)

diff --git a/lldb/test/API/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py b/lldb/test/API/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py
index e0c93e3..6ed3c90 100644
--- a/lldb/test/API/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py
+++ b/lldb/test/API/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py
@@ -47,13 +47,13 @@
         self.expect(
             "breakpoint list -f",
             "Breakpoint locations shown correctly",
+            ordered=False,
             substrs=[
-                "1: file = 'main.c', line = %d, exact_match = 0, locations = 3"
-                % self.line
+                f"1: file = 'main.c', line = {self.line}, exact_match = 0, locations = 3"
             ],
             patterns=[
-                "where = a.out`func_inlined .+unresolved, hit count = 0",
-                r"where = a.out`main .+\[inlined\].+unresolved, hit count = 0",
+                "where = a.out`func_inlined .+?unresolved, hit count = 0",
+                r"where = a.out`main .+?\[inlined\].+?unresolved, hit count = 0",
             ],
         )