@John1 for the same reason as you I have wanted to change the Author of pages in the Site Pages library. Having tested it yesterday I can say that @PeKi72 's solution does work for the Site Pages library. However, I don't know if this works when you first create the page which is what I think you are trying to do. I suspect it has to be done immediately after the page is created which is what we will be doing via a JSON-formatted button on each item in the Site Pages library.
The flow looks like this:

{
"formValues": [
{
"FieldName": "Author",
"FieldValue": "[{'Key':'i:0#.f|membership|p@{triggerBody()['number']}@xxx.co.uk'}]"
},
{
"FieldName": "Editor",
"FieldValue": "[{'Key':'i:0#.f|membership|p@{triggerBody()['number']}@xxx.co.uk'}]"
}
],
"bNewDocumentUpdate": true
}
The button is shown below, it's a single line of text column:

Format the column in advanced mode and add the following JSON, changing the ID of the flow, the text you want etc.
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "button",
"txtContent": "Change Author to Page Contact",
"customRowAction": {
"action": "executeFlow",
"actionParams": "{\"id\": \"50097cde-b800-4c6c-ade9-95be7574f4e5\",\"headerText\":\"Change Author to Contact\",\"runFlowButtonText\":\"Go\"}"
},
"style": {
"background-color": "#cf000f",
"color": "white",
"border-radius": "10px"
}
}
Rob
Los Gallardos
Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)